bleumi_pay_sdk_ruby 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -7
  3. data/bleumi_pay_sdk_ruby.gemspec +3 -3
  4. data/docs/AlgorandBalance.md +27 -0
  5. data/docs/BadRequest.md +1 -1
  6. data/docs/Chain.md +4 -3
  7. data/docs/CheckoutToken.md +6 -3
  8. data/docs/CreateCheckoutUrlRequest.md +7 -7
  9. data/docs/CreatePaymentRequest.md +3 -3
  10. data/docs/CreatePaymentResponse.md +1 -1
  11. data/docs/CreatePayoutRequest.md +1 -1
  12. data/docs/CreatePayoutResponse.md +1 -1
  13. data/docs/EthereumBalance.md +29 -0
  14. data/docs/HostedCheckoutsApi.md +26 -12
  15. data/docs/PaginatedPaymentOperations.md +2 -3
  16. data/docs/PaginatedPayments.md +3 -3
  17. data/docs/PaginatedPayoutItems.md +1 -1
  18. data/docs/Payment.md +0 -1
  19. data/docs/PaymentAddresses.md +2 -1
  20. data/docs/PaymentBalances.md +2 -1
  21. data/docs/PaymentOperation.md +2 -2
  22. data/docs/PaymentOperationInputs.md +4 -4
  23. data/docs/PaymentRefundRequest.md +1 -2
  24. data/docs/PaymentSettleRequest.md +1 -1
  25. data/docs/PaymentsApi.md +17 -15
  26. data/docs/Payout.md +2 -1
  27. data/docs/PayoutItem.md +1 -1
  28. data/docs/PayoutItemInputs.md +1 -1
  29. data/docs/PayoutsApi.md +10 -10
  30. data/docs/ValidateCheckoutRequest.md +1 -1
  31. data/docs/WalletAddress.md +1 -0
  32. data/docs/WalletBalance.md +1 -1
  33. data/lib/bleumi_pay_sdk_ruby.rb +5 -5
  34. data/lib/bleumi_pay_sdk_ruby/api/hosted_checkouts_api.rb +17 -5
  35. data/lib/bleumi_pay_sdk_ruby/api/payments_api.rb +46 -17
  36. data/lib/bleumi_pay_sdk_ruby/api/payouts_api.rb +14 -6
  37. data/lib/bleumi_pay_sdk_ruby/api/request_validator.rb +264 -0
  38. data/lib/bleumi_pay_sdk_ruby/api_client.rb +3 -3
  39. data/lib/bleumi_pay_sdk_ruby/api_error.rb +2 -2
  40. data/lib/bleumi_pay_sdk_ruby/configuration.rb +3 -3
  41. data/lib/bleumi_pay_sdk_ruby/models/{token.rb → algorand_balance.rb} +43 -38
  42. data/lib/bleumi_pay_sdk_ruby/models/bad_request.rb +3 -3
  43. data/lib/bleumi_pay_sdk_ruby/models/chain.rb +4 -5
  44. data/lib/bleumi_pay_sdk_ruby/models/checkout_token.rb +28 -13
  45. data/lib/bleumi_pay_sdk_ruby/models/create_checkout_url_request.rb +19 -7
  46. data/lib/bleumi_pay_sdk_ruby/models/create_checkout_url_response.rb +2 -2
  47. data/lib/bleumi_pay_sdk_ruby/models/create_payment_request.rb +17 -5
  48. data/lib/bleumi_pay_sdk_ruby/models/create_payment_response.rb +2 -2
  49. data/lib/bleumi_pay_sdk_ruby/models/create_payout_request.rb +4 -3
  50. data/lib/bleumi_pay_sdk_ruby/models/create_payout_response.rb +2 -2
  51. data/lib/bleumi_pay_sdk_ruby/models/{network_balance.rb → ethereum_balance.rb} +13 -46
  52. data/lib/bleumi_pay_sdk_ruby/models/paginated_payment_operations.rb +2 -2
  53. data/lib/bleumi_pay_sdk_ruby/models/paginated_payments.rb +2 -2
  54. data/lib/bleumi_pay_sdk_ruby/models/paginated_payout_items.rb +2 -2
  55. data/lib/bleumi_pay_sdk_ruby/models/payment.rb +2 -2
  56. data/lib/bleumi_pay_sdk_ruby/models/payment_addresses.rb +17 -6
  57. data/lib/bleumi_pay_sdk_ruby/models/payment_balances.rb +15 -6
  58. data/lib/bleumi_pay_sdk_ruby/models/payment_operation.rb +4 -3
  59. data/lib/bleumi_pay_sdk_ruby/models/payment_operation_inputs.rb +3 -3
  60. data/lib/bleumi_pay_sdk_ruby/models/payment_operation_response.rb +2 -2
  61. data/lib/bleumi_pay_sdk_ruby/models/payment_refund_request.rb +3 -3
  62. data/lib/bleumi_pay_sdk_ruby/models/payment_settle_request.rb +3 -3
  63. data/lib/bleumi_pay_sdk_ruby/models/payout.rb +16 -6
  64. data/lib/bleumi_pay_sdk_ruby/models/payout_item.rb +2 -2
  65. data/lib/bleumi_pay_sdk_ruby/models/payout_item_inputs.rb +2 -2
  66. data/lib/bleumi_pay_sdk_ruby/models/validate_checkout_request.rb +2 -2
  67. data/lib/bleumi_pay_sdk_ruby/models/validate_checkout_response.rb +2 -2
  68. data/lib/bleumi_pay_sdk_ruby/models/wallet_address.rb +2 -2
  69. data/lib/bleumi_pay_sdk_ruby/models/wallet_balance.rb +2 -2
  70. data/lib/bleumi_pay_sdk_ruby/version.rb +3 -3
  71. data/py_create.rb +38 -0
  72. data/spec/api/payments_api_spec.rb +2 -2
  73. data/spec/models/algorand_balance_spec.rb +47 -0
  74. data/spec/models/ethereum_balance_spec.rb +59 -0
  75. metadata +14 -10
  76. data/docs/EthAddress.md +0 -13
  77. data/docs/NetworkBalance.md +0 -29
  78. data/docs/Token.md +0 -15
  79. data/lib/bleumi_pay_sdk_ruby/models/eth_address.rb +0 -208
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Bleumi Pay API
2
+ #Bleumi Pay REST API
3
3
 
4
- #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai payments and/or payouts into your business or application
4
+ #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai, Algorand payments and/or payouts into your business or application
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: info@bleumi.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Bleumi Pay API
2
+ #Bleumi Pay REST API
3
3
 
4
- #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai payments and/or payouts into your business or application
4
+ #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai, Algorand payments and/or payouts into your business or application
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: info@bleumi.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Bleumi Pay API
2
+ #Bleumi Pay REST API
3
3
 
4
- #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai payments and/or payouts into your business or application
4
+ #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai, Algorand payments and/or payouts into your business or application
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: info@bleumi.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Bleumi Pay API
2
+ #Bleumi Pay REST API
3
3
 
4
- #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai payments and/or payouts into your business or application
4
+ #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai, Algorand payments and/or payouts into your business or application
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: info@bleumi.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Bleumi Pay API
2
+ #Bleumi Pay REST API
3
3
 
4
- #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai payments and/or payouts into your business or application
4
+ #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai, Algorand payments and/or payouts into your business or application
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: info@bleumi.com
@@ -17,17 +17,21 @@ module BleumiPay
17
17
  class PaymentAddresses
18
18
  attr_accessor :ethereum
19
19
 
20
+ attr_accessor :algorand
21
+
20
22
  # Attribute mapping from ruby-style variable name to JSON key.
21
23
  def self.attribute_map
22
24
  {
23
- :'ethereum' => :'ethereum'
25
+ :'ethereum' => :'ethereum',
26
+ :'algorand' => :'algorand'
24
27
  }
25
28
  end
26
29
 
27
30
  # Attribute type mapping.
28
31
  def self.openapi_types
29
32
  {
30
- :'ethereum' => :'Hash<String, WalletAddress>'
33
+ :'ethereum' => :'Hash<String, WalletAddress>',
34
+ :'algorand' => :'Hash<String, WalletAddress>'
31
35
  }
32
36
  end
33
37
 
@@ -57,6 +61,12 @@ module BleumiPay
57
61
  self.ethereum = value
58
62
  end
59
63
  end
64
+
65
+ if attributes.key?(:'algorand')
66
+ if (value = attributes[:'algorand']).is_a?(Hash)
67
+ self.algorand = value
68
+ end
69
+ end
60
70
  end
61
71
 
62
72
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -77,7 +87,8 @@ module BleumiPay
77
87
  def ==(o)
78
88
  return true if self.equal?(o)
79
89
  self.class == o.class &&
80
- ethereum == o.ethereum
90
+ ethereum == o.ethereum &&
91
+ algorand == o.algorand
81
92
  end
82
93
 
83
94
  # @see the `==` method
@@ -89,7 +100,7 @@ module BleumiPay
89
100
  # Calculates hash code according to all attributes.
90
101
  # @return [Integer] Hash code
91
102
  def hash
92
- [ethereum].hash
103
+ [ethereum, algorand].hash
93
104
  end
94
105
 
95
106
  # Builds the object from hash
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Bleumi Pay API
2
+ #Bleumi Pay REST API
3
3
 
4
- #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai payments and/or payouts into your business or application
4
+ #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai, Algorand payments and/or payouts into your business or application
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: info@bleumi.com
@@ -17,17 +17,21 @@ module BleumiPay
17
17
  class PaymentBalances
18
18
  attr_accessor :ethereum
19
19
 
20
+ attr_accessor :algorand
21
+
20
22
  # Attribute mapping from ruby-style variable name to JSON key.
21
23
  def self.attribute_map
22
24
  {
23
- :'ethereum' => :'ethereum'
25
+ :'ethereum' => :'ethereum',
26
+ :'algorand' => :'algorand'
24
27
  }
25
28
  end
26
29
 
27
30
  # Attribute type mapping.
28
31
  def self.openapi_types
29
32
  {
30
- :'ethereum' => :'NetworkBalance'
33
+ :'ethereum' => :'EthereumBalance',
34
+ :'algorand' => :'AlgorandBalance'
31
35
  }
32
36
  end
33
37
 
@@ -55,6 +59,10 @@ module BleumiPay
55
59
  if attributes.key?(:'ethereum')
56
60
  self.ethereum = attributes[:'ethereum']
57
61
  end
62
+
63
+ if attributes.key?(:'algorand')
64
+ self.algorand = attributes[:'algorand']
65
+ end
58
66
  end
59
67
 
60
68
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -75,7 +83,8 @@ module BleumiPay
75
83
  def ==(o)
76
84
  return true if self.equal?(o)
77
85
  self.class == o.class &&
78
- ethereum == o.ethereum
86
+ ethereum == o.ethereum &&
87
+ algorand == o.algorand
79
88
  end
80
89
 
81
90
  # @see the `==` method
@@ -87,7 +96,7 @@ module BleumiPay
87
96
  # Calculates hash code according to all attributes.
88
97
  # @return [Integer] Hash code
89
98
  def hash
90
- [ethereum].hash
99
+ [ethereum, algorand].hash
91
100
  end
92
101
 
93
102
  # Builds the object from hash
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Bleumi Pay API
2
+ #Bleumi Pay REST API
3
3
 
4
- #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai payments and/or payouts into your business or application
4
+ #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai, Algorand payments and/or payouts into your business or application
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: info@bleumi.com
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.2.2
13
13
  require 'date'
14
14
 
15
15
  module BleumiPay
16
+ # Payment Operation details
16
17
  class PaymentOperation
17
18
  # Transaction ID of the operation
18
19
  attr_accessor :txid
@@ -20,7 +21,7 @@ module BleumiPay
20
21
  # Network in which the operation was carried out
21
22
  attr_accessor :chain
22
23
 
23
- # The name of the function invoked on the [payment processor](https://pay.bleumi.com/docs/#payment-processor)
24
+ # The name of the function invoked on the payment processor
24
25
  attr_accessor :func_name
25
26
 
26
27
  # null - Operation in progress ; true - Operation completed successfuly ; false - Operation failed to process
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Bleumi Pay API
2
+ #Bleumi Pay REST API
3
3
 
4
- #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai payments and/or payouts into your business or application
4
+ #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai, Algorand payments and/or payouts into your business or application
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: info@bleumi.com
@@ -20,7 +20,7 @@ module BleumiPay
20
20
  # Amount (Only for settle operation)
21
21
  attr_accessor :amount
22
22
 
23
- # ETH - for Ethereum ; XDAI - for xDai ; XDAIT - for xDai Testnet ; <contract address of ERC-20 token> - for ERC-20 Tokens
23
+ # ETH - for Ethereum ; XDAI - for xDai ; XDAIT - for xDai Testnet ; ALGO - Algo; <asset id> - for Algorand Standard Asset; <contract address of ERC-20 token> - for ERC-20 Tokens;
24
24
  attr_accessor :token
25
25
 
26
26
  # Token amount to be settled in network format (Only for settle operation)
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Bleumi Pay API
2
+ #Bleumi Pay REST API
3
3
 
4
- #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai payments and/or payouts into your business or application
4
+ #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai, Algorand payments and/or payouts into your business or application
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: info@bleumi.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Bleumi Pay API
2
+ #Bleumi Pay REST API
3
3
 
4
- #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai payments and/or payouts into your business or application
4
+ #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai, Algorand payments and/or payouts into your business or application
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: info@bleumi.com
@@ -26,7 +26,7 @@ module BleumiPay
26
26
  # Attribute type mapping.
27
27
  def self.openapi_types
28
28
  {
29
- :'token' => :'Token'
29
+ :'token' => :'String'
30
30
  }
31
31
  end
32
32
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Bleumi Pay API
2
+ #Bleumi Pay REST API
3
3
 
4
- #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai payments and/or payouts into your business or application
4
+ #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai, Algorand payments and/or payouts into your business or application
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: info@bleumi.com
@@ -30,7 +30,7 @@ module BleumiPay
30
30
  # Attribute type mapping.
31
31
  def self.openapi_types
32
32
  {
33
- :'token' => :'Token',
33
+ :'token' => :'String',
34
34
  :'amount' => :'String'
35
35
  }
36
36
  end
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Bleumi Pay API
2
+ #Bleumi Pay REST API
3
3
 
4
- #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai payments and/or payouts into your business or application
4
+ #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai, Algorand payments and/or payouts into your business or application
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: info@bleumi.com
@@ -20,11 +20,15 @@ module BleumiPay
20
20
  # Amount of token to transfer
21
21
  attr_accessor :amount
22
22
 
23
+ # (Only for Algorand) Base64 serialization of an encoded LogicSig signed by the source of the payout
24
+ attr_accessor :authorization
25
+
23
26
  # Attribute mapping from ruby-style variable name to JSON key.
24
27
  def self.attribute_map
25
28
  {
26
29
  :'transfer_address' => :'transferAddress',
27
- :'amount' => :'amount'
30
+ :'amount' => :'amount',
31
+ :'authorization' => :'authorization'
28
32
  }
29
33
  end
30
34
 
@@ -32,7 +36,8 @@ module BleumiPay
32
36
  def self.openapi_types
33
37
  {
34
38
  :'transfer_address' => :'String',
35
- :'amount' => :'String'
39
+ :'amount' => :'String',
40
+ :'authorization' => :'String'
36
41
  }
37
42
  end
38
43
 
@@ -64,6 +69,10 @@ module BleumiPay
64
69
  if attributes.key?(:'amount')
65
70
  self.amount = attributes[:'amount']
66
71
  end
72
+
73
+ if attributes.key?(:'authorization')
74
+ self.authorization = attributes[:'authorization']
75
+ end
67
76
  end
68
77
 
69
78
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -95,7 +104,8 @@ module BleumiPay
95
104
  return true if self.equal?(o)
96
105
  self.class == o.class &&
97
106
  transfer_address == o.transfer_address &&
98
- amount == o.amount
107
+ amount == o.amount &&
108
+ authorization == o.authorization
99
109
  end
100
110
 
101
111
  # @see the `==` method
@@ -107,7 +117,7 @@ module BleumiPay
107
117
  # Calculates hash code according to all attributes.
108
118
  # @return [Integer] Hash code
109
119
  def hash
110
- [transfer_address, amount].hash
120
+ [transfer_address, amount, authorization].hash
111
121
  end
112
122
 
113
123
  # Builds the object from hash
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Bleumi Pay API
2
+ #Bleumi Pay REST API
3
3
 
4
- #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai payments and/or payouts into your business or application
4
+ #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai, Algorand payments and/or payouts into your business or application
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: info@bleumi.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Bleumi Pay API
2
+ #Bleumi Pay REST API
3
3
 
4
- #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai payments and/or payouts into your business or application
4
+ #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai, Algorand payments and/or payouts into your business or application
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: info@bleumi.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Bleumi Pay API
2
+ #Bleumi Pay REST API
3
3
 
4
- #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai payments and/or payouts into your business or application
4
+ #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai, Algorand payments and/or payouts into your business or application
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: info@bleumi.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Bleumi Pay API
2
+ #Bleumi Pay REST API
3
3
 
4
- #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai payments and/or payouts into your business or application
4
+ #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai, Algorand payments and/or payouts into your business or application
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: info@bleumi.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Bleumi Pay API
2
+ #Bleumi Pay REST API
3
3
 
4
- #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai payments and/or payouts into your business or application
4
+ #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai, Algorand payments and/or payouts into your business or application
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: info@bleumi.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Bleumi Pay API
2
+ #Bleumi Pay REST API
3
3
 
4
- #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai payments and/or payouts into your business or application
4
+ #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai, Algorand payments and/or payouts into your business or application
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: info@bleumi.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Bleumi Pay API
2
+ #Bleumi Pay REST API
3
3
 
4
- #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai payments and/or payouts into your business or application
4
+ #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai, Algorand payments and/or payouts into your business or application
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: info@bleumi.com
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.2
11
11
  =end
12
12
 
13
13
  module BleumiPay
14
- VERSION = '1.0.3'
14
+ VERSION = '1.0.4'
15
15
  end
@@ -0,0 +1,38 @@
1
+ # Load the gem
2
+ require 'bleumi_pay_sdk_ruby'
3
+
4
+ # Setup authorization
5
+ BleumiPay.configure do |config|
6
+ # Configure API key authorization: ApiKeyAuth
7
+ config.api_key['x-api-key'] = 'gCix0pemxoUt76Ufef16jwvbV6cC7H60HdryEJj0'
8
+ end
9
+
10
+ api_instance = BleumiPay::PaymentsApi.new
11
+
12
+ create_payment_request = BleumiPay::CreatePaymentRequest.new # CreatePayoutRequest | Specify payout creation parameters.
13
+ # opts = {
14
+ # chain: BleumiPay::Chain::GOERLI # Chain | Ethereum network in which payment is to be created. Please refer documentation for Supported Networks
15
+ # }
16
+ # buyer_address = '0x713883BF69B786f0A7aB6E2248a70C50577F6b34'
17
+ # transfer_address = '0x5db2d6542d55B2aEC1f10D0C0Df3B0169Bf41E41'
18
+ # token = '0x115615DbD0f835344725146Fa6343219315F15E5-'
19
+
20
+ opts = {
21
+ chain: BleumiPay::Chain::ALG_TESTNET # Chain | Ethereum network in which payment is to be created. Please refer documentation for Supported Networks
22
+ }
23
+ buyer_address = 'W5XU4IWCTVBTYXSYIGJYXEPXH2O5S6RPHLF4JK25NEPYT3RACD4Z3EBS4A'
24
+ transfer_address = 'CQRMTAHZJA3SIEOTEMZXCAIZKUWE2CCLBCFYQI4NINU43IOTEWT4LOT4IY'
25
+
26
+
27
+ create_payment_request.id = '60'
28
+ create_payment_request.buyer_address = buyer_address
29
+ create_payment_request.transfer_address = transfer_address
30
+ # create_payment_request.token = token
31
+
32
+ begin
33
+ #Create an unique wallet address to accept payments for an ERC-20 token from a buyer
34
+ result = api_instance.create_payment(create_payment_request, opts)
35
+ p result
36
+ rescue BleumiPay::ApiError => e
37
+ puts "Exception when calling create_payment: #{e}"
38
+ end