Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing authorization headers, coupons end points and query params on subscriptions #26

Open
wants to merge 70 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
5ea6894
changing authorization headers for custom auth in this case OAuth token
Aug 3, 2015
8205699
retirando comentario
Aug 3, 2015
4ad2493
Merge pull request #1 from moip/alterando_link
brenooliveira Aug 3, 2015
368ea40
Rollback Assinaturas URI
brenooliveira Aug 3, 2015
a0fd7b5
retirando autenticacao basic como preferencial
Aug 3, 2015
b572de8
alterando autenticação basico como preferencial
Aug 4, 2015
daaf0b4
Merge pull request #2 from moip/alterando_autenticacao_preferencial
carlosmenezes Aug 4, 2015
d5ec600
passa a devolver uma lista com os erros na edição de plano
brenooliveira Aug 17, 2015
3ae5a43
passa a devolver uma lista com os erros na edição de plano
brenooliveira Aug 17, 2015
7d03d84
corrigindo resposta edição de plano
Aug 18, 2015
f44979c
add skeleton for coupon
brenooliveira Aug 19, 2015
add7e1a
adicionando criação de coupon
Aug 19, 2015
2be091f
adicionando listagem de coupons
Aug 19, 2015
4166c2d
teste de criação de coupon
Aug 20, 2015
7a4e72a
corrigindo teste de criação de coupon
Aug 20, 2015
333b1e2
teste para listagem de coupons
Aug 20, 2015
1aed3a0
detalhe do coupon com teste
Aug 20, 2015
5659e64
ativando coupon
Aug 20, 2015
7503c77
desativando coupon
Aug 20, 2015
f4c791a
adicionando deleção de coupon da assinatura com testes
Aug 20, 2015
ea0efdf
corrigindo testes
Aug 20, 2015
ef52c39
adicionado o simplecov
Aug 20, 2015
c13539d
teste de exceção na listagem de coupon
Aug 20, 2015
af1a5d3
alterando Deprecated method
Sep 16, 2015
efd6e95
Merge pull request #3 from moip/coupon
willmiranda Sep 16, 2015
3e130e2
adicionando mais parametros para active e inactive
Oct 19, 2015
3cf8e2a
Merge pull request #4 from moip/coupon
willmiranda Oct 19, 2015
112752b
Alterando versão da gem
GuiSipoloni Oct 19, 2015
d569678
added ops to peform_action
Oct 19, 2015
5c1b41c
Merge pull request #5 from moip/coupon
caueferreira Oct 19, 2015
ddf92ee
novo formato de json
Oct 21, 2015
9799542
novo formato de json
Oct 21, 2015
565a0ef
Merge pull request #6 from moip/coupon
willmiranda Oct 21, 2015
48476b0
added invoice retry
brenooliveira Nov 3, 2015
e9ec4e7
fix wrong http header
brenooliveira Nov 3, 2015
12a0d71
Merge pull request #7 from moip/invoice_retry
caueferreira Nov 3, 2015
fc81d83
return error message
brenooliveira Nov 3, 2015
3d11183
Merge pull request #8 from moip/invoice_retry
caueferreira Nov 3, 2015
4119d38
Adding query params
caueferreira Nov 5, 2015
1b1f65c
Optional param
caueferreira Nov 5, 2015
f1d9387
Removed filters from url
caueferreira Nov 5, 2015
466735b
Fixing subscription list
caueferreira Nov 5, 2015
3453ba1
Fixed if nil
caueferreira Nov 5, 2015
eb651e7
Returning client subscription list properly
caueferreira Nov 5, 2015
51247a2
Subscription now working with query params
caueferreira Nov 5, 2015
5455d3d
Removed ? from subscriptions query params
caueferreira Nov 6, 2015
4dcf027
debug
Nov 6, 2015
7a28464
chamando variavel
Nov 6, 2015
33c61fe
chamando variavel
Nov 6, 2015
a7db41c
debug
Nov 6, 2015
089a498
retirando debug logs
Nov 9, 2015
1858432
adicionando novo metodo pra filtrar se assinatura possui filtro
Nov 9, 2015
f89708a
add mothod build_url_subscription return uri
Nov 9, 2015
8e6be5e
Merge pull request #9 from moip/query_params_to_list
brenooliveira Nov 9, 2015
ae31550
devolve o hash de summary
GuiSipoloni Nov 17, 2015
cbb2a73
Merge pull request #10 from moip/return_summary
fnazarios Nov 17, 2015
759603a
alterando uri da gem para usar o sandbox
Dec 14, 2015
222b284
Merge pull request #11 from moip/changing_uri_sandbox
Dec 14, 2015
124d532
devolvendo resposta de quando há erros
GuiSipoloni Dec 15, 2015
8f0e6a4
fixing
GuiSipoloni Dec 15, 2015
d576f85
fixing
GuiSipoloni Dec 15, 2015
d039ab2
Plans activate/inactivate
emisanada Jan 26, 2016
8794c80
Tests
emisanada Jan 26, 2016
21fb617
FakeWeb for Plans activate/inactivate
emisanada Jan 26, 2016
f8fff0a
Adding changes to README file
emisanada Jan 27, 2016
4ca89ec
Merge pull request #12 from moip/plans_status
brenooliveira Jan 27, 2016
50a21bc
Changing version
emisanada Jan 27, 2016
f75a68e
Creating method to notify invoice
Jonss Jun 13, 2016
3aa4d5d
Merge pull request #13 from moip/invoice_notify_request
MinocceliLucas Jun 13, 2016
2ef5f34
updating version
Jonss Jun 13, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Optional param
caueferreira committed Nov 5, 2015
commit 1b1f65ce722f0e21a60e8cb8472a8ff7e559d70a
2 changes: 1 addition & 1 deletion lib/moip-assinaturas/client.rb
Original file line number Diff line number Diff line change
@@ -82,7 +82,7 @@ def update_subscription(subscription_code, subscription_changes, opts={})
peform_action!(:put, "/subscriptions/#{subscription_code}", opts, true)
end

def list_subscriptions(opts={}, query_params)
def list_subscriptions(opts={}, query_params = nil)
prepare_options(opts, { headers: { 'Content-Type' => 'application/json', 'Accept' => 'application/json' } })

peform_action!(:get, "/subscriptions", opts) if query_params.nil