gerencianet 1.0.2 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. metadata +32 -119
  3. data/.codeclimate.yml +0 -10
  4. data/.gitignore +0 -21
  5. data/.rubocop.yml +0 -18
  6. data/.travis.yml +0 -4
  7. data/CHANGELOG.md +0 -78
  8. data/Gemfile +0 -9
  9. data/Guardfile +0 -5
  10. data/LICENSE +0 -21
  11. data/README.md +0 -96
  12. data/Rakefile +0 -6
  13. data/bin/console +0 -14
  14. data/bin/setup +0 -7
  15. data/examples/.gitignore +0 -1
  16. data/examples/certs/developmentCertificate.pem +0 -0
  17. data/examples/certs/productionCertificate.pem +0 -0
  18. data/examples/credentials.rb +0 -7
  19. data/examples/default/carnet/cancel_carnet.rb +0 -15
  20. data/examples/default/carnet/cancel_parcel.rb +0 -16
  21. data/examples/default/carnet/create_carnet.rb +0 -32
  22. data/examples/default/carnet/create_carnet_history.rb +0 -19
  23. data/examples/default/carnet/detail_carnet.rb +0 -15
  24. data/examples/default/carnet/resend_carnet.rb +0 -19
  25. data/examples/default/carnet/resend_parcel.rb +0 -20
  26. data/examples/default/carnet/settle_carnet_parcel.rb +0 -16
  27. data/examples/default/carnet/update_carnet_metadata.rb +0 -20
  28. data/examples/default/carnet/update_parcel.rb +0 -20
  29. data/examples/default/charge/all_in_one.rb +0 -57
  30. data/examples/default/charge/cancel_charge.rb +0 -15
  31. data/examples/default/charge/charge_link.rb +0 -27
  32. data/examples/default/charge/create_billet_payment.rb +0 -33
  33. data/examples/default/charge/create_card_payment.rb +0 -39
  34. data/examples/default/charge/create_charge.rb +0 -24
  35. data/examples/default/charge/create_charge_balance_sheet.rb +0 -80
  36. data/examples/default/charge/create_charge_history.rb +0 -19
  37. data/examples/default/charge/create_charge_onestep.rb +0 -36
  38. data/examples/default/charge/create_charge_onestep_creditcard.rb +0 -45
  39. data/examples/default/charge/detail_charge.rb +0 -15
  40. data/examples/default/charge/resend_billet.rb +0 -19
  41. data/examples/default/charge/settle_charge.rb +0 -15
  42. data/examples/default/charge/update_billet.rb +0 -19
  43. data/examples/default/charge/update_charge_link.rb +0 -27
  44. data/examples/default/charge/update_charge_metadata.rb +0 -20
  45. data/examples/default/marketplace/create_charge_onestep_billet_marketplace.rb +0 -45
  46. data/examples/default/marketplace/create_charge_onestep_creditcard_marketplace.rb +0 -54
  47. data/examples/default/notification/get_notification.rb +0 -15
  48. data/examples/default/others/get_installments.rb +0 -16
  49. data/examples/default/subscriptions/cancel_subscription.rb +0 -15
  50. data/examples/default/subscriptions/create_plan.rb +0 -17
  51. data/examples/default/subscriptions/create_subscription.rb +0 -31
  52. data/examples/default/subscriptions/create_subscription_history.rb +0 -19
  53. data/examples/default/subscriptions/create_subscription_payment.rb +0 -38
  54. data/examples/default/subscriptions/delete_plan.rb +0 -15
  55. data/examples/default/subscriptions/detail_subscription.rb +0 -15
  56. data/examples/default/subscriptions/get_plans.rb +0 -17
  57. data/examples/default/subscriptions/update_plan.rb +0 -19
  58. data/examples/default/subscriptions/update_subscription_metadata.rb +0 -20
  59. data/examples/gn/account/pix_detail_balance.rb +0 -16
  60. data/examples/gn/account/pix_detail_settings.rb +0 -17
  61. data/examples/gn/account/pix_update_settings.rb +0 -33
  62. data/examples/gn/key/pix_create_evp.rb +0 -17
  63. data/examples/gn/key/pix_delete_evp.rb +0 -20
  64. data/examples/gn/key/pix_list_evp.rb +0 -16
  65. data/examples/pix/charge/pix_create_charge.rb +0 -35
  66. data/examples/pix/charge/pix_create_immediate_charge.rb +0 -31
  67. data/examples/pix/charge/pix_detail_charge.rb +0 -21
  68. data/examples/pix/charge/pix_list_charges.rb +0 -21
  69. data/examples/pix/charge/pix_update_charge.rb +0 -26
  70. data/examples/pix/location/pix_create_location.rb +0 -20
  71. data/examples/pix/location/pix_detail_location.rb +0 -20
  72. data/examples/pix/location/pix_generate_qrcode.rb +0 -26
  73. data/examples/pix/location/pix_list_location.rb +0 -21
  74. data/examples/pix/location/pix_unset_txid.rb +0 -21
  75. data/examples/pix/pix/pix_detail.rb +0 -20
  76. data/examples/pix/pix/pix_detail_devolution.rb +0 -22
  77. data/examples/pix/pix/pix_devolution.rb +0 -27
  78. data/examples/pix/pix/pix_list_received.rb +0 -21
  79. data/examples/pix/pix/pix_send.rb +0 -27
  80. data/examples/pix/webhooks/pix_config_webhook.rb +0 -28
  81. data/examples/pix/webhooks/pix_delete_webhook.rb +0 -22
  82. data/examples/pix/webhooks/pix_detail_webhook.rb +0 -21
  83. data/examples/pix/webhooks/pix_list_webhook.rb +0 -22
  84. data/gerencianet.gemspec +0 -37
  85. data/lib/gerencianet/constants.rb +0 -274
  86. data/lib/gerencianet/endpoints.rb +0 -196
  87. data/lib/gerencianet/status.rb +0 -7
  88. data/lib/gerencianet/version.rb +0 -4
  89. data/lib/gerencianet.rb +0 -9
@@ -1,45 +0,0 @@
1
- require "gerencianet"
2
- require_relative "../../credentials"
3
-
4
- options = {
5
- client_id: CREDENTIALS::CLIENT_ID,
6
- client_secret: CREDENTIALS::CLIENT_SECRET,
7
- sandbox: CREDENTIALS::SANDBOX
8
- }
9
-
10
- body = {
11
- items: [{
12
- name: "Product 1",
13
- value: 1000,
14
- amount: 2,
15
- marketplace: {
16
- repasses: [{
17
- payee_code: "Insira_aqui_o_indentificador_da_conta_destino",
18
- percentage: 2500
19
- }, {
20
- payee_code: "Insira_aqui_o_indentificador_da_conta_destino",
21
- percentage: 1500
22
- }]
23
- }
24
- }],
25
- shippings: [{
26
- name: "Default Shipping Cost",
27
- value: 100
28
- }],
29
- payment: {
30
- banking_billet: {
31
- expire_at: '2020-09-09',
32
- customer: {
33
- name: "Gorbadoc Oldbuck",
34
- email: "oldbuck@gerencianet.com.br",
35
- cpf: "94271564656",
36
- birth: "1977-01-15",
37
- phone_number: "5144916523"
38
- }
39
- }
40
- }
41
- }
42
-
43
- gerencianet = Gerencianet.new(options)
44
- puts gerencianet.create_charge_onestep(body: body)
45
-
@@ -1,54 +0,0 @@
1
- require "gerencianet"
2
- require_relative "../../credentials"
3
-
4
- options = {
5
- client_id: CREDENTIALS::CLIENT_ID,
6
- client_secret: CREDENTIALS::CLIENT_SECRET,
7
- sandbox: CREDENTIALS::SANDBOX
8
- }
9
-
10
- body = {
11
- items: [{
12
- name: "Product 1",
13
- value: 1000,
14
- amount: 2,
15
- marketplace: {
16
- repasses: [{
17
- payee_code: "Insira_aqui_o_indentificador_da_conta_destino",
18
- percentage: 2500
19
- }, {
20
- payee_code: "Insira_aqui_o_indentificador_da_conta_destino",
21
- percentage: 1500
22
- }]
23
- }
24
- }],
25
- shippings: [{
26
- name: "Default Shipping Cost",
27
- value: 100
28
- }],
29
- payment: {
30
- credit_card: {
31
- installments: 1,
32
- payment_token: "InsiraAquiOPayment_token",
33
- billing_address: {
34
- street: "Av. JK",
35
- number: 909,
36
- neighborhood: "Bauxita",
37
- zipcode: "35400000",
38
- city: "Ouro Preto",
39
- state: "MG"
40
- },
41
- customer: {
42
- name: "Gorbadoc Oldbuck",
43
- email: "oldbuck@gerencianet.com.br",
44
- cpf: "94271564656",
45
- birth: "1977-01-15",
46
- phone_number: "5144916523"
47
- }
48
- }
49
- }
50
- }
51
-
52
- gerencianet = Gerencianet.new(options)
53
- puts gerencianet.create_charge_onestep(body: body)
54
-
@@ -1,15 +0,0 @@
1
- require "gerencianet"
2
- require_relative "../../credentials"
3
-
4
- options = {
5
- client_id: CREDENTIALS::CLIENT_ID,
6
- client_secret: CREDENTIALS::CLIENT_SECRET,
7
- sandbox: CREDENTIALS::SANDBOX
8
- }
9
-
10
- params = {
11
- token: "252948279264ee47e117cb099ef81"
12
- }
13
-
14
- gerencianet = Gerencianet.new(options)
15
- puts gerencianet.get_notification(params: params)
@@ -1,16 +0,0 @@
1
- require "gerencianet"
2
- require_relative "../../credentials"
3
-
4
- options = {
5
- client_id: CREDENTIALS::CLIENT_ID,
6
- client_secret: CREDENTIALS::CLIENT_SECRET,
7
- sandbox: CREDENTIALS::SANDBOX
8
- }
9
-
10
- params = {
11
- brand: "visa",
12
- total: 5000
13
- }
14
-
15
- gerencianet = Gerencianet.new(options)
16
- puts gerencianet.get_installments(params: params)
@@ -1,15 +0,0 @@
1
- require "gerencianet"
2
- require_relative "../../credentials"
3
-
4
- options = {
5
- client_id: CREDENTIALS::CLIENT_ID,
6
- client_secret: CREDENTIALS::CLIENT_SECRET,
7
- sandbox: CREDENTIALS::SANDBOX
8
- }
9
-
10
- params = {
11
- id: 1111
12
- }
13
-
14
- gerencianet = Gerencianet.new(options)
15
- puts gerencianet.cancel_subscription(params: params)
@@ -1,17 +0,0 @@
1
- require "gerencianet"
2
- require_relative "../../credentials"
3
-
4
- options = {
5
- client_id: CREDENTIALS::CLIENT_ID,
6
- client_secret: CREDENTIALS::CLIENT_SECRET,
7
- sandbox: CREDENTIALS::SANDBOX
8
- }
9
-
10
- body = {
11
- name: "My first plan",
12
- repeats: 24,
13
- interval: 2
14
- }
15
-
16
- gerencianet = Gerencianet.new(options)
17
- puts gerencianet.create_plan(body: body)
@@ -1,31 +0,0 @@
1
- require "gerencianet"
2
- require_relative "../../credentials"
3
-
4
- options = {
5
- client_id: CREDENTIALS::CLIENT_ID,
6
- client_secret: CREDENTIALS::CLIENT_SECRET,
7
- sandbox: CREDENTIALS::SANDBOX
8
- }
9
-
10
- plan = {
11
- name: "My first plan",
12
- repeats: 24,
13
- interval: 2
14
- }
15
-
16
- subscription = {
17
- items: [{
18
- name: "Product 1",
19
- value: 1000,
20
- amount: 2
21
- }]
22
- }
23
-
24
- gerencianet = Gerencianet.new(options)
25
- plan = gerencianet.create_plan(body: plan)
26
-
27
- params = {
28
- id: plan["data"]["plan_id"]
29
- }
30
-
31
- puts gerencianet.create_subscription(params: params, body: subscription)
@@ -1,19 +0,0 @@
1
- require "gerencianet"
2
- require_relative "../../credentials"
3
-
4
- options = {
5
- client_id: CREDENTIALS::CLIENT_ID,
6
- client_secret: CREDENTIALS::CLIENT_SECRET,
7
- sandbox: CREDENTIALS::SANDBOX
8
- }
9
-
10
- params = {
11
- id: 1000
12
- }
13
-
14
- body = {
15
- description: "This subscription is about a service"
16
- }
17
-
18
- gerencianet = Gerencianet.new(options)
19
- puts gerencianet.create_subscription_history(params: params, body: body)
@@ -1,38 +0,0 @@
1
- require "gerencianet"
2
- require_relative "../../credentials"
3
-
4
- options = {
5
- client_id: CREDENTIALS::CLIENT_ID,
6
- client_secret: CREDENTIALS::CLIENT_SECRET,
7
- sandbox: CREDENTIALS::SANDBOX
8
- }
9
-
10
- params = {
11
- id: 1113
12
- }
13
-
14
- body = {
15
- payment: {
16
- credit_card: {
17
- payment_token: "e0c210bb679fea225a586256234f8ce179fd16c5",
18
- billing_address: {
19
- street: "Av. JK",
20
- number: 909,
21
- neighborhood: "Bauxita",
22
- zipcode: "35400000",
23
- city: "Ouro Preto",
24
- state: "MG"
25
- },
26
- customer: {
27
- name: "Gorbadoc Oldbuck",
28
- email: "oldbuck@gerencianet.com.br",
29
- cpf: "94271564656",
30
- birth: "1977-01-15",
31
- phone_number: "5144916523"
32
- }
33
- }
34
- }
35
- }
36
-
37
- gerencianet = Gerencianet.new(options)
38
- puts gerencianet.pay_subscription(params: params, body: body)
@@ -1,15 +0,0 @@
1
- require "gerencianet"
2
- require_relative "../../credentials"
3
-
4
- options = {
5
- client_id: CREDENTIALS::CLIENT_ID,
6
- client_secret: CREDENTIALS::CLIENT_SECRET,
7
- sandbox: CREDENTIALS::SANDBOX
8
- }
9
-
10
- params = {
11
- id: 1
12
- }
13
-
14
- gerencianet = Gerencianet.new(options)
15
- puts gerencianet.delete_plan(params: params)
@@ -1,15 +0,0 @@
1
- require "gerencianet"
2
- require_relative "../../credentials"
3
-
4
- options = {
5
- client_id: CREDENTIALS::CLIENT_ID,
6
- client_secret: CREDENTIALS::CLIENT_SECRET,
7
- sandbox: CREDENTIALS::SANDBOX
8
- }
9
-
10
- params = {
11
- id: 1120
12
- }
13
-
14
- gerencianet = Gerencianet.new(options)
15
- puts gerencianet.detail_subscription(params: params)
@@ -1,17 +0,0 @@
1
- require "gerencianet"
2
- require_relative "../../credentials"
3
-
4
- options = {
5
- client_id: CREDENTIALS::CLIENT_ID,
6
- client_secret: CREDENTIALS::CLIENT_SECRET,
7
- sandbox: CREDENTIALS::SANDBOX
8
- }
9
-
10
- params = {
11
- name: "My Plan",
12
- limit: 1,
13
- offset: 0
14
- }
15
-
16
- gerencianet = Gerencianet.new(options)
17
- puts gerencianet.get_plans(params: params)
@@ -1,19 +0,0 @@
1
- require "gerencianet"
2
- require_relative "../../credentials"
3
-
4
- options = {
5
- client_id: CREDENTIALS::CLIENT_ID,
6
- client_secret: CREDENTIALS::CLIENT_SECRET,
7
- sandbox: CREDENTIALS::SANDBOX
8
- }
9
-
10
- params = {
11
- id: 1008
12
- }
13
-
14
- body = {
15
- name: "My new plan"
16
- }
17
-
18
- gerencianet = Gerencianet.new(options)
19
- puts gerencianet.update_plan(params: params, body: body)
@@ -1,20 +0,0 @@
1
- require "gerencianet"
2
- require_relative "../../credentials"
3
-
4
- options = {
5
- client_id: CREDENTIALS::CLIENT_ID,
6
- client_secret: CREDENTIALS::CLIENT_SECRET,
7
- sandbox: CREDENTIALS::SANDBOX
8
- }
9
-
10
- params = {
11
- id: 1009
12
- }
13
-
14
- body = {
15
- notification_url: "http://yourdomain.com",
16
- custom_id: "my_new_id"
17
- }
18
-
19
- gerencianet = Gerencianet.new(options)
20
- puts gerencianet.update_subscription_metadata(params: params, body: body)
@@ -1,16 +0,0 @@
1
- require "gerencianet"
2
- require_relative "../../credentials"
3
-
4
- require "uri"
5
- require "net/http"
6
- require "openssl"
7
-
8
- options = {
9
- client_id: CREDENTIALS::CLIENT_ID,
10
- client_secret: CREDENTIALS::CLIENT_SECRET,
11
- pix_cert: CREDENTIALS::PIX_CERT,
12
- sandbox: CREDENTIALS::SANDBOX
13
- }
14
-
15
- gerencianet = Gerencianet.new(options)
16
- puts gerencianet.pix_detail_balance()
@@ -1,17 +0,0 @@
1
- require "gerencianet"
2
- require_relative "../../credentials"
3
-
4
- require "uri"
5
- require "net/http"
6
- require "openssl"
7
-
8
- options = {
9
- client_id: CREDENTIALS::CLIENT_ID,
10
- client_secret: CREDENTIALS::CLIENT_SECRET,
11
- pix_cert: CREDENTIALS::PIX_CERT,
12
- sandbox: CREDENTIALS::SANDBOX
13
- }
14
-
15
- gerencianet = Gerencianet.new(options)
16
- puts gerencianet.pix_detail_settings()
17
-
@@ -1,33 +0,0 @@
1
- require "gerencianet"
2
- require_relative "../../credentials"
3
-
4
- require "uri"
5
- require "net/http"
6
- require "openssl"
7
-
8
- options = {
9
- client_id: CREDENTIALS::CLIENT_ID,
10
- client_secret: CREDENTIALS::CLIENT_SECRET,
11
- pix_cert: CREDENTIALS::PIX_CERT,
12
- sandbox: CREDENTIALS::SANDBOX
13
- }
14
-
15
- body = {
16
- pix: {
17
- receberSemChave: true,
18
- chaves: {
19
- "sua_chave": {
20
- recebimento: {
21
- txidObrigatorio: true,
22
- qrCodeEstatico: {
23
- recusarTodos: false
24
- }
25
- }
26
- }
27
- }
28
- }
29
- }
30
-
31
- gerencianet = Gerencianet.new(options)
32
- puts gerencianet.pix_update_settings(body: body)
33
-
@@ -1,17 +0,0 @@
1
- require "gerencianet"
2
- require_relative "../../credentials"
3
-
4
- require "uri"
5
- require "net/http"
6
- require "openssl"
7
-
8
- options = {
9
- client_id: CREDENTIALS::CLIENT_ID,
10
- client_secret: CREDENTIALS::CLIENT_SECRET,
11
- pix_cert: CREDENTIALS::PIX_CERT,
12
- sandbox: CREDENTIALS::SANDBOX
13
- }
14
-
15
- gerencianet = Gerencianet.new(options)
16
- puts gerencianet.pix_create_evp()
17
-
@@ -1,20 +0,0 @@
1
- require "gerencianet"
2
- require_relative "../../credentials"
3
-
4
- require "uri"
5
- require "net/http"
6
- require "openssl"
7
-
8
- options = {
9
- client_id: CREDENTIALS::CLIENT_ID,
10
- client_secret: CREDENTIALS::CLIENT_SECRET,
11
- pix_cert: CREDENTIALS::PIX_CERT,
12
- sandbox: CREDENTIALS::SANDBOX
13
- }
14
-
15
- params = {
16
- chave: " "
17
- }
18
-
19
- gerencianet = Gerencianet.new(options)
20
- puts gerencianet.pix_delete_evp(params: params)
@@ -1,16 +0,0 @@
1
- require "gerencianet"
2
- require_relative "../../credentials"
3
-
4
- require "uri"
5
- require "net/http"
6
- require "openssl"
7
-
8
- options = {
9
- client_id: CREDENTIALS::CLIENT_ID,
10
- client_secret: CREDENTIALS::CLIENT_SECRET,
11
- pix_cert: CREDENTIALS::PIX_CERT,
12
- sandbox: CREDENTIALS::SANDBOX
13
- }
14
-
15
- gerencianet = Gerencianet.new(options)
16
- puts gerencianet.pix_list_evp()
@@ -1,35 +0,0 @@
1
- require "gerencianet"
2
- require_relative "../../credentials"
3
-
4
- require "uri"
5
- require "net/http"
6
- require "openssl"
7
-
8
- options = {
9
- client_id: CREDENTIALS::CLIENT_ID,
10
- client_secret: CREDENTIALS::CLIENT_SECRET,
11
- pix_cert: CREDENTIALS::PIX_CERT,
12
- sandbox: CREDENTIALS::SANDBOX
13
- }
14
-
15
- params = {
16
- txid: " "
17
- }
18
-
19
- body = {
20
- calendario: {
21
- expiracao: 3600
22
- },
23
- devedor: {
24
- cpf: "12345678909",
25
- nome: "Francisco da Silva"
26
- },
27
- valor: {
28
- original: "0.01"
29
- },
30
- chave: "sua_chave",
31
- solicitacaoPagador: "Cobrança dos serviços prestados."
32
- }
33
-
34
- gerencianet = Gerencianet.new(options)
35
- puts gerencianet.pix_create_charge(params: params, body: body)
@@ -1,31 +0,0 @@
1
- require "gerencianet"
2
- require_relative "../../credentials"
3
-
4
- require "uri"
5
- require "net/http"
6
- require "openssl"
7
-
8
- options = {
9
- client_id: CREDENTIALS::CLIENT_ID,
10
- client_secret: CREDENTIALS::CLIENT_SECRET,
11
- pix_cert: CREDENTIALS::PIX_CERT,
12
- sandbox: CREDENTIALS::SANDBOX
13
- }
14
-
15
- body = {
16
- calendario: {
17
- expiracao: 3600
18
- },
19
- devedor: {
20
- cpf: "12345678909",
21
- nome: "Francisco da Silva"
22
- },
23
- valor: {
24
- original: "0.01"
25
- },
26
- chave: "sua_chave",
27
- solicitacaoPagador: "Cobrança dos serviços prestados."
28
- }
29
-
30
- gerencianet = Gerencianet.new(options)
31
- puts gerencianet.pix_create_immediate_charge(body: body)
@@ -1,21 +0,0 @@
1
- require "gerencianet"
2
- require_relative "../../credentials"
3
-
4
- require "uri"
5
- require "net/http"
6
- require "openssl"
7
-
8
- options = {
9
- client_id: CREDENTIALS::CLIENT_ID,
10
- client_secret: CREDENTIALS::CLIENT_SECRET,
11
- pix_cert: CREDENTIALS::PIX_CERT,
12
- sandbox: CREDENTIALS::SANDBOX
13
- }
14
-
15
- params = {
16
- txid: " "
17
- }
18
-
19
- gerencianet = Gerencianet.new(options)
20
- puts gerencianet.pix_detail_charge(params: params)
21
-
@@ -1,21 +0,0 @@
1
- require "gerencianet"
2
- require_relative "../../credentials"
3
-
4
- require "uri"
5
- require "net/http"
6
- require "openssl"
7
-
8
- options = {
9
- client_id: CREDENTIALS::CLIENT_ID,
10
- client_secret: CREDENTIALS::CLIENT_SECRET,
11
- pix_cert: CREDENTIALS::PIX_CERT,
12
- sandbox: CREDENTIALS::SANDBOX
13
- }
14
-
15
- params = {
16
- inicio: "2020-10-22T16:01:35Z",
17
- fim: "2021-04-23T16:01:35Z"
18
- }
19
-
20
- gerencianet = Gerencianet.new(options)
21
- puts gerencianet.pix_list_charges(params: params)
@@ -1,26 +0,0 @@
1
- require "gerencianet"
2
- require_relative "../../credentials"
3
-
4
- require "uri"
5
- require "net/http"
6
- require "openssl"
7
-
8
- options = {
9
- client_id: CREDENTIALS::CLIENT_ID,
10
- client_secret: CREDENTIALS::CLIENT_SECRET,
11
- pix_cert: CREDENTIALS::PIX_CERT,
12
- sandbox: CREDENTIALS::SANDBOX
13
- }
14
-
15
- params = {
16
- txid: " "
17
- }
18
-
19
- body = {
20
- valor: {
21
- original: "5.00"
22
- }
23
- }
24
-
25
- gerencianet = Gerencianet.new(options)
26
- puts gerencianet.pix_update_charge(params: params, body: body)
@@ -1,20 +0,0 @@
1
- require "gerencianet"
2
- require_relative "../../credentials"
3
-
4
- require "uri"
5
- require "net/http"
6
- require "openssl"
7
-
8
- options = {
9
- client_id: CREDENTIALS::CLIENT_ID,
10
- client_secret: CREDENTIALS::CLIENT_SECRET,
11
- pix_cert: CREDENTIALS::PIX_CERT,
12
- sandbox: CREDENTIALS::SANDBOX
13
- }
14
-
15
- body = {
16
- tipoCob: "cob"
17
- }
18
-
19
- gerencianet = Gerencianet.new(options)
20
- puts gerencianet.pix_create_location(body: body)
@@ -1,20 +0,0 @@
1
- require "gerencianet"
2
- require_relative "../../credentials"
3
-
4
- require "uri"
5
- require "net/http"
6
- require "openssl"
7
-
8
- options = {
9
- client_id: CREDENTIALS::CLIENT_ID,
10
- client_secret: CREDENTIALS::CLIENT_SECRET,
11
- pix_cert: CREDENTIALS::PIX_CERT,
12
- sandbox: CREDENTIALS::SANDBOX
13
- }
14
-
15
- params = {
16
- id: " "
17
- }
18
-
19
- gerencianet = Gerencianet.new(options)
20
- puts gerencianet.pix_detail_location(params: params)