amazon_flex_pay 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. data/LICENSE +20 -0
  2. data/README.rdoc +41 -0
  3. data/Rakefile +23 -0
  4. data/lib/amazon_flex_pay/api/base.rb +86 -0
  5. data/lib/amazon_flex_pay/api/cancel.rb +11 -0
  6. data/lib/amazon_flex_pay/api/cancel_token.rb +9 -0
  7. data/lib/amazon_flex_pay/api/get_account_activity.rb +21 -0
  8. data/lib/amazon_flex_pay/api/get_account_balance.rb +8 -0
  9. data/lib/amazon_flex_pay/api/get_recipient_verification_status.rb +9 -0
  10. data/lib/amazon_flex_pay/api/get_token_by_caller.rb +10 -0
  11. data/lib/amazon_flex_pay/api/get_token_usage.rb +9 -0
  12. data/lib/amazon_flex_pay/api/get_tokens.rb +13 -0
  13. data/lib/amazon_flex_pay/api/get_transaction.rb +9 -0
  14. data/lib/amazon_flex_pay/api/get_transaction_status.rb +13 -0
  15. data/lib/amazon_flex_pay/api/pay.rb +20 -0
  16. data/lib/amazon_flex_pay/api/refund.rb +14 -0
  17. data/lib/amazon_flex_pay/api/reserve.rb +20 -0
  18. data/lib/amazon_flex_pay/api/settle.rb +11 -0
  19. data/lib/amazon_flex_pay/api/verify_signature.rb +14 -0
  20. data/lib/amazon_flex_pay/api.rb +162 -0
  21. data/lib/amazon_flex_pay/data_types.rb +138 -0
  22. data/lib/amazon_flex_pay/enumerations.rb +23 -0
  23. data/lib/amazon_flex_pay/model.rb +130 -0
  24. data/lib/amazon_flex_pay/pipelines/base.rb +40 -0
  25. data/lib/amazon_flex_pay/pipelines/edit_token.rb +6 -0
  26. data/lib/amazon_flex_pay/pipelines/multi_use.rb +28 -0
  27. data/lib/amazon_flex_pay/pipelines/recipient.rb +10 -0
  28. data/lib/amazon_flex_pay/pipelines/single_use.rb +24 -0
  29. data/lib/amazon_flex_pay/pipelines.rb +41 -0
  30. data/lib/amazon_flex_pay/signing.rb +42 -0
  31. data/lib/amazon_flex_pay.rb +53 -0
  32. data/test/amazon_flex_pay_test.rb +117 -0
  33. data/test/api_test.rb +310 -0
  34. data/test/pipelines_test.rb +46 -0
  35. data/test/response_samples.rb +588 -0
  36. data/test/test_helper.rb +22 -0
  37. metadata +167 -0
metadata ADDED
@@ -0,0 +1,167 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: amazon_flex_pay
3
+ version: !ruby/object:Gem::Version
4
+ hash: 63
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 9
9
+ - 2
10
+ version: 0.9.2
11
+ platform: ruby
12
+ authors:
13
+ - Lance Ivy
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-03-10 00:00:00 -08:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: rest-client
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ hash: 13
30
+ segments:
31
+ - 1
32
+ - 6
33
+ - 1
34
+ version: 1.6.1
35
+ type: :runtime
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: multi_xml
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ hash: 23
46
+ segments:
47
+ - 0
48
+ - 2
49
+ - 0
50
+ version: 0.2.0
51
+ type: :runtime
52
+ version_requirements: *id002
53
+ - !ruby/object:Gem::Dependency
54
+ name: activesupport
55
+ prerelease: false
56
+ requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ hash: 21
62
+ segments:
63
+ - 2
64
+ - 3
65
+ - 11
66
+ version: 2.3.11
67
+ type: :runtime
68
+ version_requirements: *id003
69
+ - !ruby/object:Gem::Dependency
70
+ name: mocha
71
+ prerelease: false
72
+ requirement: &id004 !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ hash: 3
78
+ segments:
79
+ - 0
80
+ version: "0"
81
+ type: :development
82
+ version_requirements: *id004
83
+ description: A straight-forward REST API for Amazon's Flexible Payments Services.
84
+ email: lance@kickstarter.com
85
+ executables: []
86
+
87
+ extensions: []
88
+
89
+ extra_rdoc_files: []
90
+
91
+ files:
92
+ - lib/amazon_flex_pay/pipelines.rb
93
+ - lib/amazon_flex_pay/enumerations.rb
94
+ - lib/amazon_flex_pay/signing.rb
95
+ - lib/amazon_flex_pay/pipelines/base.rb
96
+ - lib/amazon_flex_pay/pipelines/single_use.rb
97
+ - lib/amazon_flex_pay/pipelines/edit_token.rb
98
+ - lib/amazon_flex_pay/pipelines/recipient.rb
99
+ - lib/amazon_flex_pay/pipelines/multi_use.rb
100
+ - lib/amazon_flex_pay/model.rb
101
+ - lib/amazon_flex_pay/api/get_transaction.rb
102
+ - lib/amazon_flex_pay/api/get_token_usage.rb
103
+ - lib/amazon_flex_pay/api/reserve.rb
104
+ - lib/amazon_flex_pay/api/base.rb
105
+ - lib/amazon_flex_pay/api/get_transaction_status.rb
106
+ - lib/amazon_flex_pay/api/verify_signature.rb
107
+ - lib/amazon_flex_pay/api/get_account_balance.rb
108
+ - lib/amazon_flex_pay/api/get_recipient_verification_status.rb
109
+ - lib/amazon_flex_pay/api/get_account_activity.rb
110
+ - lib/amazon_flex_pay/api/refund.rb
111
+ - lib/amazon_flex_pay/api/pay.rb
112
+ - lib/amazon_flex_pay/api/cancel.rb
113
+ - lib/amazon_flex_pay/api/cancel_token.rb
114
+ - lib/amazon_flex_pay/api/get_token_by_caller.rb
115
+ - lib/amazon_flex_pay/api/get_tokens.rb
116
+ - lib/amazon_flex_pay/api/settle.rb
117
+ - lib/amazon_flex_pay/api.rb
118
+ - lib/amazon_flex_pay/data_types.rb
119
+ - lib/amazon_flex_pay.rb
120
+ - LICENSE
121
+ - README.rdoc
122
+ - Rakefile
123
+ - test/test_helper.rb
124
+ - test/response_samples.rb
125
+ - test/amazon_flex_pay_test.rb
126
+ - test/pipelines_test.rb
127
+ - test/api_test.rb
128
+ has_rdoc: true
129
+ homepage: http://github.com/kickstarter/amazon_flex_pay
130
+ licenses: []
131
+
132
+ post_install_message:
133
+ rdoc_options: []
134
+
135
+ require_paths:
136
+ - lib
137
+ required_ruby_version: !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - ">="
141
+ - !ruby/object:Gem::Version
142
+ hash: 3
143
+ segments:
144
+ - 0
145
+ version: "0"
146
+ required_rubygems_version: !ruby/object:Gem::Requirement
147
+ none: false
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ hash: 3
152
+ segments:
153
+ - 0
154
+ version: "0"
155
+ requirements: []
156
+
157
+ rubyforge_project:
158
+ rubygems_version: 1.3.7
159
+ signing_key:
160
+ specification_version: 3
161
+ summary: API layer for Amazon FPS
162
+ test_files:
163
+ - test/test_helper.rb
164
+ - test/response_samples.rb
165
+ - test/amazon_flex_pay_test.rb
166
+ - test/pipelines_test.rb
167
+ - test/api_test.rb