blockchyp 1.16.1 → 1.24.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -111
- data/lib/blockchyp/version.rb +1 -1
- data/lib/blockchyp.rb +1 -17
- data/test/activate_terminal_test.rb +1 -1
- data/test/add_test_merchant_test.rb +1 -1
- data/test/batch_history_test.rb +1 -1
- data/test/boolean_prompt_test.rb +1 -1
- data/test/cancel_payment_link_test.rb +1 -1
- data/test/capture_signature_test.rb +1 -1
- data/test/deactivate_terminal_test.rb +1 -1
- data/test/delete_branding_asset_test.rb +1 -1
- data/test/delete_customer_test.rb +1 -1
- data/test/delete_media_asset_test.rb +1 -1
- data/test/delete_queued_transaction_test.rb +1 -1
- data/test/delete_slide_show_test.rb +1 -1
- data/test/delete_survey_question_test.rb +1 -1
- data/test/delete_test_merchant_test.rb +1 -1
- data/test/delete_token_test.rb +1 -1
- data/test/empty_branding_asset_test.rb +1 -1
- data/test/empty_slide_show_test.rb +1 -1
- data/test/gateway_timeout_test.rb +1 -1
- data/test/get_customer_test.rb +1 -1
- data/test/get_merchants_test.rb +1 -1
- data/test/invite_merchant_user_test.rb +1 -1
- data/test/link_token_test.rb +1 -1
- data/test/list_queued_transactions_test.rb +1 -1
- data/test/list_terminals_test.rb +1 -1
- data/test/media_asset_test.rb +1 -1
- data/test/media_test.rb +1 -1
- data/test/media_upload_test.rb +1 -1
- data/test/merchant_platforms_test.rb +1 -1
- data/test/merchant_profile_test.rb +1 -1
- data/test/merchant_users_test.rb +1 -1
- data/test/new_transaction_display_test.rb +1 -1
- data/test/pan_charge_test.rb +1 -1
- data/test/pan_enroll_test.rb +1 -1
- data/test/pan_preauth_test.rb +1 -1
- data/test/partial_refund_test.rb +1 -1
- data/test/search_customer_test.rb +1 -1
- data/test/send_payment_link_test.rb +1 -1
- data/test/simple_batch_close_test.rb +1 -1
- data/test/simple_capture_test.rb +1 -1
- data/test/simple_gift_activate_test.rb +1 -1
- data/test/simple_locate_test.rb +1 -1
- data/test/simple_message_test.rb +1 -1
- data/test/simple_ping_test.rb +1 -1
- data/test/simple_refund_test.rb +1 -1
- data/test/simple_reversal_test.rb +1 -1
- data/test/simple_void_test.rb +1 -1
- data/test/slide_show_test.rb +1 -1
- data/test/slide_shows_test.rb +1 -1
- data/test/survey_question_test.rb +1 -1
- data/test/survey_questions_test.rb +1 -1
- data/test/survey_results_test.rb +1 -1
- data/test/tc_delete_template_test.rb +1 -1
- data/test/tc_entry_test.rb +1 -1
- data/test/tc_log_test.rb +1 -1
- data/test/tc_template_test.rb +1 -1
- data/test/tc_template_update_test.rb +1 -1
- data/test/tc_templates_test.rb +1 -1
- data/test/terminal_branding_test.rb +1 -1
- data/test/terminal_charge_test.rb +1 -1
- data/test/terminal_clear_test.rb +1 -1
- data/test/terminal_ebt_balance_test.rb +1 -1
- data/test/terminal_ebt_charge_test.rb +1 -1
- data/test/terminal_enroll_test.rb +1 -1
- data/test/terminal_gift_card_balance_test.rb +1 -1
- data/test/terminal_keyed_charge_test.rb +1 -1
- data/test/terminal_manual_ebt_charge_test.rb +1 -1
- data/test/terminal_preauth_test.rb +1 -1
- data/test/terminal_queued_transaction_test.rb +1 -1
- data/test/terminal_status_test.rb +1 -1
- data/test/terminal_timeout_test.rb +1 -1
- data/test/terms_and_conditions_test.rb +1 -1
- data/test/text_prompt_test.rb +1 -1
- data/test/token_metadata_test.rb +1 -1
- data/test/transaction_history_test.rb +1 -1
- data/test/unlink_token_test.rb +1 -1
- data/test/update_branding_asset_test.rb +1 -1
- data/test/update_customer_test.rb +1 -1
- data/test/update_merchant_platforms_test.rb +1 -1
- data/test/update_merchant_test.rb +1 -1
- data/test/update_slide_show_test.rb +1 -1
- data/test/update_survey_question_test.rb +1 -1
- data/test/update_transaction_display_test.rb +1 -1
- data/test/upload_status_test.rb +1 -1
- metadata +2 -4
- data/test/payment_link_status_test.rb +0 -72
- data/test/resend_payment_link_test.rb +0 -49
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
data/test/simple_void_test.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
data/test/slide_show_test.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
data/test/slide_shows_test.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
data/test/survey_results_test.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
data/test/tc_entry_test.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
data/test/tc_log_test.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
data/test/tc_template_test.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
data/test/tc_templates_test.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
data/test/terminal_clear_test.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
data/test/text_prompt_test.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
data/test/token_metadata_test.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
data/test/unlink_token_test.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
data/test/upload_status_test.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright 2019-
|
3
|
+
# Copyright 2019-2022 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
4
|
# governed by a license that can be found in the LICENSE file.
|
5
5
|
#
|
6
6
|
# This file was generated automatically by the BlockChyp SDK Generator.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blockchyp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.24.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BlockChyp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|
@@ -59,8 +59,6 @@ files:
|
|
59
59
|
- test/pan_enroll_test.rb
|
60
60
|
- test/pan_preauth_test.rb
|
61
61
|
- test/partial_refund_test.rb
|
62
|
-
- test/payment_link_status_test.rb
|
63
|
-
- test/resend_payment_link_test.rb
|
64
62
|
- test/search_customer_test.rb
|
65
63
|
- test/send_payment_link_test.rb
|
66
64
|
- test/simple_batch_close_test.rb
|
@@ -1,72 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Copyright 2019-2023 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
|
-
# governed by a license that can be found in the LICENSE file.
|
5
|
-
#
|
6
|
-
# This file was generated automatically by the BlockChyp SDK Generator.
|
7
|
-
# Changes to this file will be lost every time the code is regenerated.
|
8
|
-
|
9
|
-
require ::File.expand_path('test_helper', __dir__)
|
10
|
-
|
11
|
-
module BlockChyp
|
12
|
-
class PaymentLinkStatusTest < TestCase
|
13
|
-
def test_payment_link_status
|
14
|
-
|
15
|
-
puts "Running test_payment_link_status..."
|
16
|
-
|
17
|
-
config = load_test_config
|
18
|
-
|
19
|
-
blockchyp = BlockChyp.new(
|
20
|
-
config[:apiKey],
|
21
|
-
config[:bearerToken],
|
22
|
-
config[:signingKey]
|
23
|
-
)
|
24
|
-
blockchyp.gateway_host = config[:gatewayHost]
|
25
|
-
blockchyp.test_gateway_host = config[:testGatewayHost]
|
26
|
-
blockchyp.dashboard_host = config[:dashboardHost]
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
# Set request parameters
|
33
|
-
setup_request = {
|
34
|
-
amount: '199.99',
|
35
|
-
description: 'Widget',
|
36
|
-
subject: 'Widget invoice',
|
37
|
-
transaction: {
|
38
|
-
subtotal: '195.00',
|
39
|
-
tax: '4.99',
|
40
|
-
total: '199.99',
|
41
|
-
items: [
|
42
|
-
{
|
43
|
-
description: 'Widget',
|
44
|
-
price: '195.00',
|
45
|
-
quantity: 1
|
46
|
-
}
|
47
|
-
]
|
48
|
-
},
|
49
|
-
autoSend: true,
|
50
|
-
customer: {
|
51
|
-
customerRef: 'Customer reference string',
|
52
|
-
firstName: 'FirstName',
|
53
|
-
lastName: 'LastName',
|
54
|
-
companyName: 'Company Name',
|
55
|
-
emailAddress: 'notifications@blockchypteam.m8r.co',
|
56
|
-
smsNumber: '(123) 123-1231'
|
57
|
-
}
|
58
|
-
}
|
59
|
-
response = blockchyp.send_payment_link(setup_request)
|
60
|
-
|
61
|
-
# Set request parameters
|
62
|
-
request = {
|
63
|
-
transactionRef: response[:transactionRef]
|
64
|
-
}
|
65
|
-
|
66
|
-
response = blockchyp.payment_link_status(request)
|
67
|
-
assert_not_nil(response)
|
68
|
-
# response assertions
|
69
|
-
assert(response[:success])
|
70
|
-
end
|
71
|
-
end
|
72
|
-
end
|
@@ -1,49 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Copyright 2019-2023 BlockChyp, Inc. All rights reserved. Use of this code is
|
4
|
-
# governed by a license that can be found in the LICENSE file.
|
5
|
-
#
|
6
|
-
# This file was generated automatically by the BlockChyp SDK Generator.
|
7
|
-
# Changes to this file will be lost every time the code is regenerated.
|
8
|
-
|
9
|
-
require ::File.expand_path('test_helper', __dir__)
|
10
|
-
|
11
|
-
module BlockChyp
|
12
|
-
class ResendPaymentLinkTest < TestCase
|
13
|
-
def test_resend_payment_link
|
14
|
-
|
15
|
-
puts "Running test_resend_payment_link..."
|
16
|
-
|
17
|
-
config = load_test_config
|
18
|
-
|
19
|
-
blockchyp = BlockChyp.new(
|
20
|
-
config[:apiKey],
|
21
|
-
config[:bearerToken],
|
22
|
-
config[:signingKey]
|
23
|
-
)
|
24
|
-
blockchyp.gateway_host = config[:gatewayHost]
|
25
|
-
blockchyp.test_gateway_host = config[:testGatewayHost]
|
26
|
-
blockchyp.dashboard_host = config[:dashboardHost]
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
# Set request parameters
|
33
|
-
setup_request = {
|
34
|
-
linkCode: response[:linkCode]
|
35
|
-
}
|
36
|
-
response = blockchyp.resend_payment_link(setup_request)
|
37
|
-
|
38
|
-
# Set request parameters
|
39
|
-
request = {
|
40
|
-
linkCode: response[:linkCode]
|
41
|
-
}
|
42
|
-
|
43
|
-
response = blockchyp.resend_payment_link(request)
|
44
|
-
assert_not_nil(response)
|
45
|
-
# response assertions
|
46
|
-
assert(response[:success])
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|