bleumi_pay_sdk_ruby 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -0
  3. data/assets/images/BleumiPay.png +0 -0
  4. data/docs/AlgorandAddress.md +28 -0
  5. data/docs/CreateCheckoutUrlRequest.md +3 -2
  6. data/docs/EthereumAddress.md +29 -0
  7. data/docs/HostedCheckoutsApi.md +4 -3
  8. data/docs/PaginatedPayments.md +59 -55
  9. data/docs/Payment.md +18 -35
  10. data/docs/PaymentAddresses.md +35 -12
  11. data/docs/PaymentBalances.md +28 -13
  12. data/docs/RskAddress.md +29 -0
  13. data/docs/ValidateCheckoutRequest.md +2 -2
  14. data/lib/bleumi_pay_sdk_ruby.rb +3 -2
  15. data/lib/bleumi_pay_sdk_ruby/api/payments_api.rb +0 -73
  16. data/lib/bleumi_pay_sdk_ruby/api/payouts_api.rb +2 -2
  17. data/lib/bleumi_pay_sdk_ruby/api/request_validator.rb +5 -32
  18. data/lib/bleumi_pay_sdk_ruby/models/algorand_address.rb +219 -0
  19. data/lib/bleumi_pay_sdk_ruby/models/create_checkout_url_request.rb +8 -8
  20. data/lib/bleumi_pay_sdk_ruby/models/{create_payment_request.rb → ethereum_address.rb} +38 -49
  21. data/lib/bleumi_pay_sdk_ruby/models/payment_addresses.rb +6 -12
  22. data/lib/bleumi_pay_sdk_ruby/models/{create_payment_response.rb → rsk_address.rb} +25 -18
  23. data/lib/bleumi_pay_sdk_ruby/version.rb +1 -1
  24. data/spec/api/payments_api_spec.rb +0 -12
  25. data/spec/models/algorand_address_spec.rb +47 -0
  26. data/spec/models/create_checkout_url_request_spec.rb +1 -1
  27. data/spec/models/{create_payment_request_spec.rb → ethereum_address_spec.rb} +10 -10
  28. data/spec/models/{create_payment_response_spec.rb → rsk_address_spec.rb} +13 -7
  29. metadata +15 -22
  30. data/docs/CreatePaymentRequest.md +0 -19
  31. data/docs/CreatePaymentResponse.md +0 -15
  32. data/hc_create.rb +0 -40
  33. data/hc_list.rb +0 -17
  34. data/hc_validate.rb +0 -22
  35. data/po_create.rb +0 -39
  36. data/po_list.rb +0 -23
  37. data/py_create.rb +0 -48
  38. data/py_get.rb +0 -18
  39. data/py_getop.rb +0 -19
  40. data/py_list.rb +0 -24
  41. data/py_listops.rb +0 -21
  42. data/py_refund.rb +0 -43
  43. data/py_settle.rb +0 -43
@@ -1,21 +0,0 @@
1
- # load the gem
2
- require 'bleumi_pay_sdk_ruby'
3
- # setup authorization
4
- BleumiPay.configure do |config|
5
- # Configure API key authorization: ApiKeyAuth
6
- config.api_key['x-api-key'] = 'gCix0pemxoUt76Ufef16jwvbV6cC7H60HdryEJj0'
7
- end
8
-
9
- api_instance = BleumiPay::PaymentsApi.new
10
- id = '16' # String | Unique ID identifying the wallet in your system
11
- opts = {
12
- next_token: '' # String | Cursor to start results from
13
- }
14
-
15
- begin
16
- #Return the list of operations performed by the mechant on a specific wallet
17
- result = api_instance.list_payment_operations(id, opts)
18
- p result
19
- rescue BleumiPay::ApiError => e
20
- puts "Exception when calling list_payment_operations: #{e}"
21
- end
@@ -1,43 +0,0 @@
1
- # load the gem
2
- require 'bleumi_pay_sdk_ruby'
3
- # setup authorization
4
- BleumiPay.configure do |config|
5
- # Configure API key authorization: ApiKeyAuth
6
- config.api_key['x-api-key'] = 'gCix0pemxoUt76Ufef16jwvbV6cC7H60HdryEJj0'
7
- end
8
-
9
- api_instance = BleumiPay::PaymentsApi.new
10
- id = '16' # String | Unique ID identifying this record in your system
11
-
12
- # opts = {
13
- # chain: BleumiPay::Chain::GOERLI # Chain | Ethereum network in which payment is to be created. Please refer documentation for Supported Networks
14
- # }
15
- # refundTokenAddresss = '0x115615DbD0f835344725146Fa6343219315F15E5'
16
-
17
- # opts = {
18
- # chain: BleumiPay::Chain::ALG_TESTNET # Chain | Ethereum network in which payment is to be created. Please refer documentation for Supported Networks
19
- # }
20
- # refundTokenAddresss = 'ALGO'
21
-
22
- # RSK
23
- # USD p18 - 0xB3A4A821434bDFbE55872C240D3888c412c68B9B
24
- # USD p6 - 0xb9F624160Bb2755aa25366cc307ED27e39A4f296
25
- # USD p2 - 0x1efEaBf46Ca3270A9a41D324350692664f1eA105
26
- # EUR p2 - 0xd7a5c209194AC2E8e3E6Ca1dbF3C55484adb06e1
27
- # Chain: RSK_TESTNET
28
- refundTokenAddresss = '0xb9F624160Bb2755aa25366cc307ED27e39A4f296'
29
- opts = {
30
- chain: BleumiPay::Chain::RSK_TESTNET # Chain | RSK network in which payment is to be created. Please refer documentation for Supported Networks
31
- }
32
-
33
- payment_refund_request = BleumiPay::PaymentRefundRequest.new # PaymentRefundRequest | Request body - used to specify the token to refund.
34
-
35
- payment_refund_request.token = refundTokenAddresss
36
-
37
- begin
38
- #Refund wallet
39
- result = api_instance.refund_payment(id, payment_refund_request, opts)
40
- p result
41
- rescue BleumiPay::ApiError => e
42
- puts "Exception when calling PaymentsApi->refund_payment: #{e}"
43
- end
@@ -1,43 +0,0 @@
1
- # load the gem
2
- require 'bleumi_pay_sdk_ruby'
3
- # setup authorization
4
- BleumiPay.configure do |config|
5
- # Configure API key authorization: ApiKeyAuth
6
- config.api_key['x-api-key'] = 'gCix0pemxoUt76Ufef16jwvbV6cC7H60HdryEJj0'
7
- end
8
-
9
- api_instance = BleumiPay::PaymentsApi.new
10
- id = '17' # String | Unique ID identifying this record in your system
11
- # opts = {
12
- # chain: BleumiPay::Chain::GOERLI # Chain | Ethereum network in which payment is to be created. Please refer documentation for Supported Networks
13
- # }
14
- # settleToken = '0x115615DbD0f835344725146Fa6343219315F15E5'
15
-
16
- # opts = {
17
- # chain: BleumiPay::Chain::ALG_TESTNET # Chain | Ethereum network in which payment is to be created. Please refer documentation for Supported Networks
18
- # }
19
- # settleToken = 'ALGO'
20
-
21
- # RSK
22
- # USD p18 - 0xB3A4A821434bDFbE55872C240D3888c412c68B9B
23
- # USD p6 - 0xb9F624160Bb2755aa25366cc307ED27e39A4f296
24
- # USD p2 - 0x1efEaBf46Ca3270A9a41D324350692664f1eA105
25
- # EUR p2 - 0xd7a5c209194AC2E8e3E6Ca1dbF3C55484adb06e1
26
- # Chain: RSK_TESTNET
27
- settleToken = '0xb9F624160Bb2755aa25366cc307ED27e39A4f296'
28
- opts = {
29
- chain: BleumiPay::Chain::RSK_TESTNET # Chain | RSK network in which payment is to be created. Please refer documentation for Supported Networks
30
- }
31
-
32
-
33
- payment_settle_request = BleumiPay::PaymentSettleRequest.new # WalletSettleOperationInput | Request body - used to specify the amount to settle.
34
- payment_settle_request.amount = '10'
35
- payment_settle_request.token = settleToken
36
-
37
- begin
38
- #Settle a wallet, amount received will be transferred even if less than payment amount
39
- result = api_instance.settle_payment(id, payment_settle_request, opts)
40
- p result
41
- rescue BleumiPay::ApiError => e
42
- puts "Exception when calling PaymentsApi->settle_payment: #{e}"
43
- end