ecpay_invoice 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.idea/.rakeTasks +7 -0
- data/.idea/gem.iml +9 -0
- data/.idea/misc.xml +4 -0
- data/.idea/modules.xml +8 -0
- data/.idea/vcs.xml +6 -0
- data/.idea/workspace.xml +310 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/Gemfile +4 -0
- data/README.md +28 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/conf/invoice_conf.xml +29 -0
- data/ecpay_invoice.gemspec +25 -0
- data/lib/ecpay_invoice/ECpayInvoice.xml +565 -0
- data/lib/ecpay_invoice/core_ext/hash.rb +13 -0
- data/lib/ecpay_invoice/core_ext/string.rb +5 -0
- data/lib/ecpay_invoice/error.rb +8 -0
- data/lib/ecpay_invoice/helper.rb +164 -0
- data/lib/ecpay_invoice/invoice_client.rb +166 -0
- data/lib/ecpay_invoice/notify_client.rb +79 -0
- data/lib/ecpay_invoice/query_client.rb +120 -0
- data/lib/ecpay_invoice/verification.rb +1075 -0
- data/lib/ecpay_invoice/version.rb +3 -0
- data/lib/ecpay_invoice.rb +8 -0
- metadata +116 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 55138dbfa6ea46a41964acd872708923bbf4ffb4
|
|
4
|
+
data.tar.gz: a7a2804cdc47714b1fd8a050de88c8ed93aa3f09
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 38e33df9cd38e122af78e36f1f71e0b1d88382b281baed4256a9ef1d8e7e727f08e9e7af7d90bbad35eb8900f2a16fc0a76b7224d83b69367cbce970157e029f
|
|
7
|
+
data.tar.gz: d9dd83213d4101dc88e0b314a102a67f5304adefb36f18e7cd9e783b148012c38047921ae80c440b91004defdb488a076a2776342339c2a23f9e9c02913cde4a
|
data/.gitignore
ADDED
data/.idea/.rakeTasks
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<Settings><!--This file was automatically generated by Ruby plugin.
|
|
3
|
+
You are allowed to:
|
|
4
|
+
1. Remove rake task
|
|
5
|
+
2. Add existing rake tasks
|
|
6
|
+
To add existing rake tasks automatically delete this file and reload the project.
|
|
7
|
+
--><RakeGroup description="" fullCmd="" taksId="rake" /></Settings>
|
data/.idea/gem.iml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager">
|
|
4
|
+
<content url="file://$MODULE_DIR$" />
|
|
5
|
+
<orderEntry type="inheritedJdk" />
|
|
6
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
7
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.14.3, ruby-2.3.1-p112) [gem]" level="application" />
|
|
8
|
+
</component>
|
|
9
|
+
</module>
|
data/.idea/misc.xml
ADDED
data/.idea/modules.xml
ADDED
data/.idea/vcs.xml
ADDED
data/.idea/workspace.xml
ADDED
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ChangeListManager">
|
|
4
|
+
<list default="true" id="27e45a1f-f083-48a6-ae14-6848d9553c92" name="Default" comment="" />
|
|
5
|
+
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
|
6
|
+
<option name="TRACKING_ENABLED" value="true" />
|
|
7
|
+
<option name="SHOW_DIALOG" value="false" />
|
|
8
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
9
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
10
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
11
|
+
</component>
|
|
12
|
+
<component name="CreatePatchCommitExecutor">
|
|
13
|
+
<option name="PATCH_PATH" value="" />
|
|
14
|
+
</component>
|
|
15
|
+
<component name="FileEditorManager">
|
|
16
|
+
<leaf>
|
|
17
|
+
<file leaf-file-name="verification.rb" pinned="false" current-in-tab="true">
|
|
18
|
+
<entry file="file://$PROJECT_DIR$/lib/allpay_invoice/verification.rb">
|
|
19
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
20
|
+
<state relative-caret-position="0">
|
|
21
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
22
|
+
<folding />
|
|
23
|
+
</state>
|
|
24
|
+
</provider>
|
|
25
|
+
</entry>
|
|
26
|
+
</file>
|
|
27
|
+
</leaf>
|
|
28
|
+
</component>
|
|
29
|
+
<component name="Git.Settings">
|
|
30
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/.." />
|
|
31
|
+
</component>
|
|
32
|
+
<component name="IdeDocumentHistory">
|
|
33
|
+
<option name="CHANGED_PATHS">
|
|
34
|
+
<list>
|
|
35
|
+
<option value="$PROJECT_DIR$/lib/allpay_invoice/verification.rb" />
|
|
36
|
+
</list>
|
|
37
|
+
</option>
|
|
38
|
+
</component>
|
|
39
|
+
<component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
|
|
40
|
+
<component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
|
|
41
|
+
<component name="JsGulpfileManager">
|
|
42
|
+
<detection-done>true</detection-done>
|
|
43
|
+
<sorting>DEFINITION_ORDER</sorting>
|
|
44
|
+
</component>
|
|
45
|
+
<component name="ProjectFrameBounds">
|
|
46
|
+
<option name="x" value="292" />
|
|
47
|
+
<option name="y" value="64" />
|
|
48
|
+
<option name="width" value="1400" />
|
|
49
|
+
<option name="height" value="911" />
|
|
50
|
+
</component>
|
|
51
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
|
|
52
|
+
<component name="ProjectView">
|
|
53
|
+
<navigator currentView="ProjectPane" proportions="" version="1">
|
|
54
|
+
<flattenPackages />
|
|
55
|
+
<showMembers />
|
|
56
|
+
<showModules />
|
|
57
|
+
<showLibraryContents />
|
|
58
|
+
<hideEmptyPackages />
|
|
59
|
+
<abbreviatePackageNames />
|
|
60
|
+
<autoscrollToSource />
|
|
61
|
+
<autoscrollFromSource />
|
|
62
|
+
<sortByType />
|
|
63
|
+
<manualOrder />
|
|
64
|
+
<foldersAlwaysOnTop value="true" />
|
|
65
|
+
</navigator>
|
|
66
|
+
<panes>
|
|
67
|
+
<pane id="Scope" />
|
|
68
|
+
<pane id="ProjectPane">
|
|
69
|
+
<subPane>
|
|
70
|
+
<PATH>
|
|
71
|
+
<PATH_ELEMENT>
|
|
72
|
+
<option name="myItemId" value="gem" />
|
|
73
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
74
|
+
</PATH_ELEMENT>
|
|
75
|
+
<PATH_ELEMENT>
|
|
76
|
+
<option name="myItemId" value="gem" />
|
|
77
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
78
|
+
</PATH_ELEMENT>
|
|
79
|
+
</PATH>
|
|
80
|
+
<PATH>
|
|
81
|
+
<PATH_ELEMENT>
|
|
82
|
+
<option name="myItemId" value="gem" />
|
|
83
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
84
|
+
</PATH_ELEMENT>
|
|
85
|
+
<PATH_ELEMENT>
|
|
86
|
+
<option name="myItemId" value="gem" />
|
|
87
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
88
|
+
</PATH_ELEMENT>
|
|
89
|
+
<PATH_ELEMENT>
|
|
90
|
+
<option name="myItemId" value="lib" />
|
|
91
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
92
|
+
</PATH_ELEMENT>
|
|
93
|
+
</PATH>
|
|
94
|
+
<PATH>
|
|
95
|
+
<PATH_ELEMENT>
|
|
96
|
+
<option name="myItemId" value="gem" />
|
|
97
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
98
|
+
</PATH_ELEMENT>
|
|
99
|
+
<PATH_ELEMENT>
|
|
100
|
+
<option name="myItemId" value="gem" />
|
|
101
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
102
|
+
</PATH_ELEMENT>
|
|
103
|
+
<PATH_ELEMENT>
|
|
104
|
+
<option name="myItemId" value="lib" />
|
|
105
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
106
|
+
</PATH_ELEMENT>
|
|
107
|
+
<PATH_ELEMENT>
|
|
108
|
+
<option name="myItemId" value="allpay_invoice" />
|
|
109
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
110
|
+
</PATH_ELEMENT>
|
|
111
|
+
</PATH>
|
|
112
|
+
<PATH>
|
|
113
|
+
<PATH_ELEMENT>
|
|
114
|
+
<option name="myItemId" value="gem" />
|
|
115
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
116
|
+
</PATH_ELEMENT>
|
|
117
|
+
<PATH_ELEMENT>
|
|
118
|
+
<option name="myItemId" value="gem" />
|
|
119
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
120
|
+
</PATH_ELEMENT>
|
|
121
|
+
<PATH_ELEMENT>
|
|
122
|
+
<option name="myItemId" value="conf" />
|
|
123
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
124
|
+
</PATH_ELEMENT>
|
|
125
|
+
</PATH>
|
|
126
|
+
</subPane>
|
|
127
|
+
</pane>
|
|
128
|
+
<pane id="Scratches" />
|
|
129
|
+
</panes>
|
|
130
|
+
</component>
|
|
131
|
+
<component name="PropertiesComponent">
|
|
132
|
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
|
133
|
+
<property name="last_opened_file_path" value="$PROJECT_DIR$/.." />
|
|
134
|
+
<property name="js.eslint.eslintPackage" value="" />
|
|
135
|
+
</component>
|
|
136
|
+
<component name="RunManager">
|
|
137
|
+
<configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
|
|
138
|
+
<predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
|
|
139
|
+
<module name="" />
|
|
140
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
141
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
|
142
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
143
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
144
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
145
|
+
<envs />
|
|
146
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
|
147
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
|
148
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
149
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
150
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
151
|
+
</COVERAGE_PATTERN>
|
|
152
|
+
</EXTENSION>
|
|
153
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
|
|
154
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
155
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
156
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
|
157
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
|
|
158
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
|
|
159
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
|
|
160
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
161
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
162
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
|
|
163
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
|
164
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
|
165
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
|
166
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
|
|
167
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
|
|
168
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
|
|
169
|
+
<method />
|
|
170
|
+
</configuration>
|
|
171
|
+
<configuration default="true" type="JavaScriptTestRunnerProtractor" factoryName="Protractor">
|
|
172
|
+
<config-file value="" />
|
|
173
|
+
<node-interpreter value="project" />
|
|
174
|
+
<envs />
|
|
175
|
+
<method />
|
|
176
|
+
</configuration>
|
|
177
|
+
<configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
|
|
178
|
+
<method />
|
|
179
|
+
</configuration>
|
|
180
|
+
<configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
|
|
181
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
182
|
+
<module name="" />
|
|
183
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
184
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
|
185
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
186
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
187
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
188
|
+
<envs />
|
|
189
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
|
190
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
|
191
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
192
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
193
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
194
|
+
</COVERAGE_PATTERN>
|
|
195
|
+
</EXTENSION>
|
|
196
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
197
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
|
198
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
|
199
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
200
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
|
201
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
202
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
203
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
204
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
|
205
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
|
206
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
|
207
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
|
208
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
209
|
+
<method />
|
|
210
|
+
</configuration>
|
|
211
|
+
<configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
|
|
212
|
+
<predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
|
|
213
|
+
<module name="" />
|
|
214
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
|
215
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
|
216
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
217
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
218
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
219
|
+
<envs />
|
|
220
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
|
221
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
|
222
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
|
223
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
224
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
225
|
+
</COVERAGE_PATTERN>
|
|
226
|
+
</EXTENSION>
|
|
227
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
228
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
|
229
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
|
|
230
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
|
|
231
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
232
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
|
233
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
|
234
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
|
235
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
|
236
|
+
<method />
|
|
237
|
+
</configuration>
|
|
238
|
+
<configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
|
|
239
|
+
<method />
|
|
240
|
+
</configuration>
|
|
241
|
+
<configuration default="true" type="js.build_tools.npm" factoryName="npm">
|
|
242
|
+
<command value="run" />
|
|
243
|
+
<scripts />
|
|
244
|
+
<node-interpreter value="project" />
|
|
245
|
+
<envs />
|
|
246
|
+
<method />
|
|
247
|
+
</configuration>
|
|
248
|
+
</component>
|
|
249
|
+
<component name="ShelveChangesManager" show_recycled="false">
|
|
250
|
+
<option name="remove_strategy" value="false" />
|
|
251
|
+
</component>
|
|
252
|
+
<component name="TaskManager">
|
|
253
|
+
<task active="true" id="Default" summary="Default task">
|
|
254
|
+
<changelist id="27e45a1f-f083-48a6-ae14-6848d9553c92" name="Default" comment="" />
|
|
255
|
+
<created>1487084268499</created>
|
|
256
|
+
<option name="number" value="Default" />
|
|
257
|
+
<option name="presentableId" value="Default" />
|
|
258
|
+
<updated>1487084268499</updated>
|
|
259
|
+
<workItem from="1487084274018" duration="206000" />
|
|
260
|
+
</task>
|
|
261
|
+
<servers />
|
|
262
|
+
</component>
|
|
263
|
+
<component name="TimeTrackingManager">
|
|
264
|
+
<option name="totallyTimeSpent" value="206000" />
|
|
265
|
+
</component>
|
|
266
|
+
<component name="ToolWindowManager">
|
|
267
|
+
<frame x="292" y="64" width="1400" height="911" extended-state="0" />
|
|
268
|
+
<editor active="false" />
|
|
269
|
+
<layout>
|
|
270
|
+
<window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
|
271
|
+
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
|
272
|
+
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32947975" sideWeight="0.49714285" order="-1" side_tool="false" content_ui="tabs" />
|
|
273
|
+
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32947975" sideWeight="0.50285715" order="-1" side_tool="true" content_ui="tabs" />
|
|
274
|
+
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
|
275
|
+
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
|
276
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32947975" sideWeight="0.49714285" order="2" side_tool="false" content_ui="tabs" />
|
|
277
|
+
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
278
|
+
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
|
279
|
+
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
|
|
280
|
+
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
|
281
|
+
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
|
282
|
+
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
|
283
|
+
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
|
284
|
+
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
|
285
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
286
|
+
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
|
287
|
+
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
288
|
+
</layout>
|
|
289
|
+
</component>
|
|
290
|
+
<component name="TypeScriptGeneratedFilesManager">
|
|
291
|
+
<option name="processedProjectFiles" value="true" />
|
|
292
|
+
</component>
|
|
293
|
+
<component name="VcsContentAnnotationSettings">
|
|
294
|
+
<option name="myLimit" value="2678400000" />
|
|
295
|
+
</component>
|
|
296
|
+
<component name="XDebuggerManager">
|
|
297
|
+
<breakpoint-manager />
|
|
298
|
+
<watches-manager />
|
|
299
|
+
</component>
|
|
300
|
+
<component name="editorHistoryManager">
|
|
301
|
+
<entry file="file://$PROJECT_DIR$/lib/allpay_invoice/verification.rb">
|
|
302
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
303
|
+
<state relative-caret-position="0">
|
|
304
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
305
|
+
<folding />
|
|
306
|
+
</state>
|
|
307
|
+
</provider>
|
|
308
|
+
</entry>
|
|
309
|
+
</component>
|
|
310
|
+
</project>
|
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# 綠界 電子發票介接RoR 第一版
|
|
2
|
+
---
|
|
3
|
+
|
|
4
|
+
## 來源:https://github.com/ECPay/Invoice_Ruby.git
|
|
5
|
+
|
|
6
|
+
## 1. 介紹
|
|
7
|
+
|
|
8
|
+
- 綠界對於有開立電子發票需求的會員,提供完整的電子發票開立介接API,並有多種功能可選擇使用。 本套件為RoR版,可使用開立發票,發送開立發票通知,查詢發票明細等應用。
|
|
9
|
+
- 開立發票:
|
|
10
|
+
- 一般開立發票
|
|
11
|
+
- 延遲開立發票
|
|
12
|
+
- 暫存開立發票
|
|
13
|
+
- 開立發票折讓
|
|
14
|
+
- 作廢發票
|
|
15
|
+
- 作廢發票折讓
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## 2. 安裝環境
|
|
19
|
+
- Ruby 2.3.1 (x64) 以上
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## 3. 使用教學
|
|
23
|
+
- 使用者文件放置於Doc資料夾內,可供參閱
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## 4. 聯絡我們
|
|
28
|
+
- 綠界技術客服信箱: techsupport@greenworld.com.tw
|
data/Rakefile
ADDED
data/bin/console
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
require "bundler/setup"
|
|
4
|
+
require "ecpay_invoice"
|
|
5
|
+
|
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
|
8
|
+
|
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
10
|
+
# require "pry"
|
|
11
|
+
# Pry.start
|
|
12
|
+
|
|
13
|
+
require "irb"
|
|
14
|
+
IRB.start
|