sk_api_schema 0.9.3 → 0.9.4
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.
- data/CHANGELOG.md +3 -0
- data/Gemfile +1 -1
- data/json/v1.0/company.json +5 -0
- data/json/v1.0/export.json +2 -2
- data/json/v1.0/invoice.json +15 -0
- data/json/v1.0/recurring.json +15 -0
- data/lib/sk_api_schema/version.rb +1 -1
- metadata +4 -4
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,9 @@ Also sign up to our [Developer Newsletter](http://www.salesking.eu/dev/newslette
|
|
|
5
5
|
|
|
6
6
|
##2014-01
|
|
7
7
|
|
|
8
|
+
* add SEPA creditor_id for company
|
|
9
|
+
* add SEPA fields for invoice, recurring: sepa_mandate_id, sepa_mandate_signed_at, sepa_debit_sequence_type
|
|
10
|
+
* add SEPA Export types, remove old dta export types
|
|
8
11
|
* search/filter contacts by organisation
|
|
9
12
|
* line_item price_single is required,
|
|
10
13
|
* line item empty tax,discount now return null instead of 0
|
data/Gemfile
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
source
|
|
1
|
+
source 'https://rubygems.org'
|
|
2
2
|
gemspec
|
data/json/v1.0/company.json
CHANGED
|
@@ -84,6 +84,11 @@
|
|
|
84
84
|
"type":"string",
|
|
85
85
|
"maxLength": 30
|
|
86
86
|
},
|
|
87
|
+
"sepa_creditor_id":{
|
|
88
|
+
"description": "SEPA Creditor ID, needed for SEPA direct debit transactions.",
|
|
89
|
+
"type":"string",
|
|
90
|
+
"maxLength": 18
|
|
91
|
+
},
|
|
87
92
|
"bank_name":{
|
|
88
93
|
"description": "Bank name",
|
|
89
94
|
"type":"string",
|
data/json/v1.0/export.json
CHANGED
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"format":"text"
|
|
24
24
|
},
|
|
25
25
|
"kind":{
|
|
26
|
-
"description": "The export type. text: uses an export template defined by a template_id. archived_pdf: zip with archived PDF(documents only). allinone_pdf: All archived PDF(Documents) in one big PDF. attachments: All attachments of the given objects as zip.
|
|
26
|
+
"description": "The export type. text: uses an export template defined by a template_id. archived_pdf: zip with archived PDF(documents only). allinone_pdf: All archived PDF(Documents) in one big PDF. attachments: All attachments of the given objects as zip. SEPA: bank exports, relies on valid bank information in your company, the exported document and the contact.",
|
|
27
27
|
"required":true,
|
|
28
|
-
"enum": ["text", "archived_pdf", "attachments", "
|
|
28
|
+
"enum": ["text", "archived_pdf", "attachments", "allinone_pdf", "sepa_debit", "sepa_credit"],
|
|
29
29
|
"type":"string"
|
|
30
30
|
},
|
|
31
31
|
"template_id":{
|
data/json/v1.0/invoice.json
CHANGED
|
@@ -96,6 +96,21 @@
|
|
|
96
96
|
"type":"object",
|
|
97
97
|
"properties":{"$ref":"./attachment.json#properties"}
|
|
98
98
|
},
|
|
99
|
+
"sepa_mandate_id":{
|
|
100
|
+
"description": "SEPA mandate identifier needed in direct debit transactions. This is a unique id given by you to the customer beforehand.",
|
|
101
|
+
"type":"string",
|
|
102
|
+
"maxLength": 35
|
|
103
|
+
},
|
|
104
|
+
"sepa_mandate_signed_at":{
|
|
105
|
+
"description": "Date the SEPA mandate was signed by your customer. Must not be in the future!",
|
|
106
|
+
"format":"date",
|
|
107
|
+
"type":"string"
|
|
108
|
+
},
|
|
109
|
+
"sepa_debit_sequence_type":{
|
|
110
|
+
"description": "SEPA direct debit sequence type. Check with you bank how they handle FRST(first) and FNAL(final) types. When exporting SEPA debit to your bank the type defaults to OOF if blank.",
|
|
111
|
+
"type":"string",
|
|
112
|
+
"enum":["FRST","OOFF","RCUR","FNAL"]
|
|
113
|
+
},
|
|
99
114
|
"client":{
|
|
100
115
|
"description": "DEPRECATED: use contact",
|
|
101
116
|
"readonly":true,
|
data/json/v1.0/recurring.json
CHANGED
|
@@ -83,6 +83,21 @@
|
|
|
83
83
|
"maxLength": 3,
|
|
84
84
|
"minLength": 3
|
|
85
85
|
},
|
|
86
|
+
"sepa_mandate_id":{
|
|
87
|
+
"description": "SEPA mandate identifier needed in direct debit transactions. This is a unique id given by you to the customer beforehand.",
|
|
88
|
+
"type":"string",
|
|
89
|
+
"maxLength": 35
|
|
90
|
+
},
|
|
91
|
+
"sepa_mandate_signed_at":{
|
|
92
|
+
"description": "Date the SEPA mandate was signed by your customer. Must not be in the future!",
|
|
93
|
+
"format":"date",
|
|
94
|
+
"type":"string"
|
|
95
|
+
},
|
|
96
|
+
"sepa_debit_sequence_type":{
|
|
97
|
+
"description": "SEPA direct debit sequence type. Check with you bank how they handle FRST(first) and FNAL(final) types. When exporting SEPA debit to your bank the type defaults to OOF if blank.",
|
|
98
|
+
"type":"string",
|
|
99
|
+
"enum":["FRST","OOFF","RCUR","FNAL"]
|
|
100
|
+
},
|
|
86
101
|
"client":{
|
|
87
102
|
"description": "DEPRECATED: use contact",
|
|
88
103
|
"readonly":true,
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sk_api_schema
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 51
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 9
|
|
9
|
-
-
|
|
10
|
-
version: 0.9.
|
|
9
|
+
- 4
|
|
10
|
+
version: 0.9.4
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Georg Leciejewski
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2014-01-
|
|
18
|
+
date: 2014-01-31 00:00:00 Z
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
21
21
|
name: activesupport
|