nordlet 0.5.6 → 0.6.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 +4 -4
- data/lib/nordlet/account/client.rb +2 -1
- data/lib/nordlet/account/types/companies_create_account_request.rb +16 -0
- data/lib/nordlet/account/types/companies_create_account_request_country_code.rb +222 -3
- data/lib/nordlet/account/types/companies_create_account_request_default_invoice_locale.rb +44 -0
- data/lib/nordlet/account/types/companies_create_account_response.rb +2 -0
- data/lib/nordlet/account/types/companies_profile_account_response.rb +18 -0
- data/lib/nordlet/account/types/companies_update_account_request.rb +14 -0
- data/lib/nordlet/account/types/companies_update_account_request_default_invoice_locale.rb +44 -0
- data/lib/nordlet/account/types/companies_update_account_response.rb +18 -0
- data/lib/nordlet/account/types/me_account_response_companies_item.rb +2 -0
- data/lib/nordlet/billing/client.rb +40 -3
- data/lib/nordlet/billing/types/account_get_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/account_get_billing_response_plan.rb +1 -0
- data/lib/nordlet/billing/types/account_set_account_type_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/account_set_account_type_billing_response_plan.rb +1 -0
- data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_plan.rb +1 -0
- data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_plan.rb +1 -0
- data/lib/nordlet/billing/types/account_set_plan_billing_request_plan.rb +1 -0
- data/lib/nordlet/billing/types/account_set_plan_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/account_set_plan_billing_response_plan.rb +1 -0
- data/lib/nordlet/billing/types/flat_rate_confirm_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_plan.rb +1 -0
- data/lib/nordlet/billing/types/flat_rate_create_billing_request_plan.rb +1 -0
- data/lib/nordlet/billing/types/subscription_cancel_billing_request.rb +9 -0
- data/lib/nordlet/billing/types/subscription_cancel_billing_response.rb +51 -0
- data/lib/nordlet/billing/types/subscription_cancel_billing_response_account_type.rb +14 -0
- data/lib/nordlet/billing/types/subscription_cancel_billing_response_auto_top_up.rb +15 -0
- data/lib/nordlet/billing/types/subscription_cancel_billing_response_month_to_date.rb +27 -0
- data/lib/nordlet/billing/types/subscription_cancel_billing_response_plan.rb +16 -0
- data/lib/nordlet/billing/types/subscription_cancel_billing_response_plans_value.rb +19 -0
- data/lib/nordlet/billing/types/subscription_cancel_billing_response_status.rb +15 -0
- data/lib/nordlet/billing/types/subscription_cancel_billing_response_top_up.rb +13 -0
- data/lib/nordlet/billing/types/topup_confirm_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/topup_confirm_billing_response_plan.rb +1 -0
- data/lib/nordlet/declarations/client.rb +45 -4
- data/lib/nordlet/declarations/types/de_euer_get_declarations_request.rb +11 -0
- data/lib/nordlet/declarations/types/de_euer_get_declarations_response.rb +17 -0
- data/lib/nordlet/declarations/types/de_euer_get_declarations_response_rows_item.rb +19 -0
- data/lib/nordlet/declarations/types/de_euer_get_declarations_response_rows_item_anlage.rb +14 -0
- data/lib/nordlet/declarations/types/de_return_facts_get_declarations_response_facts.rb +6 -0
- data/lib/nordlet/declarations/types/de_return_facts_get_declarations_response_facts_euer_einkunftsart.rb +15 -0
- data/lib/nordlet/declarations/types/de_return_facts_set_declarations_request_facts.rb +6 -0
- data/lib/nordlet/declarations/types/de_return_facts_set_declarations_request_facts_euer_einkunftsart.rb +15 -0
- data/lib/nordlet/declarations/types/de_return_facts_set_declarations_response_facts.rb +6 -0
- data/lib/nordlet/declarations/types/de_return_facts_set_declarations_response_facts_euer_einkunftsart.rb +15 -0
- data/lib/nordlet/declarations/types/de_returns_generate_declarations_request_rule_key.rb +1 -0
- data/lib/nordlet/partners/client.rb +11 -10
- data/lib/nordlet/partners/types/create_partners_request.rb +4 -0
- data/lib/nordlet/partners/types/create_partners_request_invoice_currency.rb +97 -0
- data/lib/nordlet/partners/types/create_partners_request_invoice_locale.rb +44 -0
- data/lib/nordlet/partners/types/create_partners_response.rb +4 -0
- data/lib/nordlet/partners/types/find_or_create_partners_request.rb +4 -0
- data/lib/nordlet/partners/types/find_or_create_partners_request_invoice_currency.rb +97 -0
- data/lib/nordlet/partners/types/find_or_create_partners_request_invoice_locale.rb +44 -0
- data/lib/nordlet/partners/types/find_or_create_partners_response_partner.rb +4 -0
- data/lib/nordlet/partners/types/get_partners_response.rb +4 -0
- data/lib/nordlet/partners/types/list_partners_response_rows_item.rb +4 -0
- data/lib/nordlet/partners/types/update_partners_request.rb +4 -0
- data/lib/nordlet/partners/types/update_partners_request_invoice_currency.rb +97 -0
- data/lib/nordlet/partners/types/update_partners_request_invoice_locale.rb +44 -0
- data/lib/nordlet/partners/types/update_partners_response.rb +4 -0
- data/lib/nordlet/public/client.rb +111 -2
- data/lib/nordlet/public/types/invoices_checkout_public_request.rb +11 -0
- data/lib/nordlet/public/types/invoices_checkout_public_response.rb +11 -0
- data/lib/nordlet/public/types/invoices_get_public_request.rb +11 -0
- data/lib/nordlet/public/types/invoices_get_public_response.rb +47 -0
- data/lib/nordlet/public/types/invoices_get_public_response_buyer.rb +17 -0
- data/lib/nordlet/public/types/invoices_get_public_response_buyer_address.rb +17 -0
- data/lib/nordlet/public/types/invoices_get_public_response_lines_item.rb +21 -0
- data/lib/nordlet/public/types/invoices_get_public_response_payment_status.rb +15 -0
- data/lib/nordlet/public/types/invoices_get_public_response_seller.rb +31 -0
- data/lib/nordlet/public/types/invoices_get_public_response_seller_address.rb +17 -0
- data/lib/nordlet/public/types/invoices_get_public_response_status.rb +14 -0
- data/lib/nordlet/public/types/invoices_get_public_response_type.rb +16 -0
- data/lib/nordlet/public/types/invoices_pdf_public_request.rb +11 -0
- data/lib/nordlet/public/types/invoices_pdf_public_response.rb +15 -0
- data/lib/nordlet/sales/client.rb +237 -9
- data/lib/nordlet/sales/types/exports_month_sales_request.rb +13 -0
- data/lib/nordlet/sales/types/exports_month_sales_request_format.rb +15 -0
- data/lib/nordlet/sales/types/exports_month_sales_response.rb +15 -0
- data/lib/nordlet/sales/types/invoices_apply_advance_sales_response.rb +8 -0
- data/lib/nordlet/sales/types/invoices_card_payments_connect_sales_request.rb +13 -0
- data/lib/nordlet/sales/types/invoices_card_payments_connect_sales_response.rb +11 -0
- data/lib/nordlet/sales/types/invoices_card_payments_disconnect_sales_request.rb +9 -0
- data/lib/nordlet/sales/types/invoices_card_payments_disconnect_sales_response.rb +15 -0
- data/lib/nordlet/sales/types/invoices_card_payments_get_sales_request.rb +9 -0
- data/lib/nordlet/sales/types/invoices_card_payments_get_sales_response.rb +15 -0
- data/lib/nordlet/sales/types/invoices_create_sales_request.rb +6 -0
- data/lib/nordlet/sales/types/invoices_create_sales_request_locale.rb +29 -0
- data/lib/nordlet/sales/types/invoices_create_sales_response.rb +8 -0
- data/lib/nordlet/sales/types/invoices_get_sales_response.rb +8 -0
- data/lib/nordlet/sales/types/invoices_issue_sales_response.rb +8 -0
- data/lib/nordlet/sales/types/invoices_list_sales_response_rows_item.rb +8 -0
- data/lib/nordlet/sales/types/invoices_lock_sales_response.rb +8 -0
- data/lib/nordlet/sales/types/invoices_payment_link_sales_response_source.rb +1 -0
- data/lib/nordlet/sales/types/invoices_pdf_sales_request_locale.rb +29 -0
- data/lib/nordlet/sales/types/invoices_send_sales_request.rb +2 -0
- data/lib/nordlet/sales/types/invoices_send_sales_request_locale.rb +29 -0
- data/lib/nordlet/sales/types/invoices_unlock_sales_response.rb +8 -0
- data/lib/nordlet/sales/types/invoices_update_sales_request.rb +6 -0
- data/lib/nordlet/sales/types/invoices_update_sales_request_locale.rb +29 -0
- data/lib/nordlet/sales/types/invoices_update_sales_response.rb +8 -0
- data/lib/nordlet/sales/types/invoices_view_sales_request.rb +11 -0
- data/lib/nordlet/sales/types/invoices_view_sales_response.rb +49 -0
- data/lib/nordlet/sales/types/invoices_view_sales_response_buyer.rb +17 -0
- data/lib/nordlet/sales/types/invoices_view_sales_response_buyer_address.rb +17 -0
- data/lib/nordlet/sales/types/invoices_view_sales_response_lines_item.rb +21 -0
- data/lib/nordlet/sales/types/invoices_view_sales_response_payment_status.rb +15 -0
- data/lib/nordlet/sales/types/invoices_view_sales_response_seller.rb +31 -0
- data/lib/nordlet/sales/types/invoices_view_sales_response_seller_address.rb +17 -0
- data/lib/nordlet/sales/types/invoices_view_sales_response_status.rb +14 -0
- data/lib/nordlet/sales/types/invoices_view_sales_response_type.rb +16 -0
- data/lib/nordlet/sales/types/payments_list_sales_request.rb +17 -0
- data/lib/nordlet/sales/types/payments_list_sales_response.rb +19 -0
- data/lib/nordlet/sales/types/payments_list_sales_response_rows_item.rb +27 -0
- data/lib/nordlet/sales/types/payments_list_sales_response_rows_item_method.rb +15 -0
- data/lib/nordlet/sales/types/recurring_invoices_create_sales_request_locale.rb +29 -0
- data/lib/nordlet/sales/types/recurring_invoices_update_sales_request_locale.rb +29 -0
- data/lib/nordlet/version.rb +1 -1
- data/lib/nordlet/webhooks/types/subscriptions_create_webhooks_request_events_item.rb +1 -0
- data/lib/nordlet/webhooks/types/subscriptions_update_webhooks_request_events_item.rb +1 -0
- data/lib/nordlet.rb +61 -0
- data/reference.md +1296 -365
- metadata +63 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c375364bd75cbb336b619318e892d3e447b401005c6794dd1b874fdeb9dc5403
|
|
4
|
+
data.tar.gz: 33fe4ab8a29cedafa93753d26e73b9f0d1894425ac27c8c314eadc8ee74b4f85
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 630c6c9f12a0f10fcbbec9f2d3dd93fc9bb484ba8d9aa52fdc639e9eb09298e27771216ce8c991df499488a02a0e7e10b81487aefc9e867cb692c75ddb3d549d
|
|
7
|
+
data.tar.gz: 2846592c2bef1e2a0f1876e8e56425652d6c3265a1ff8dc5b10df017cd5bf441419faf480f62858896e7ca4b1ee73b0862b08c19a2f6c334bf3edeacffcac4df
|
|
@@ -618,7 +618,8 @@ module Nordlet
|
|
|
618
618
|
|
|
619
619
|
# Change the profile of the active company; owners and admins may call it. Only the fields sent are changed, and
|
|
620
620
|
# the nullable ones can be sent as null to clear them. `logo` stores a base64-encoded image as a file of the
|
|
621
|
-
# company and sets `logoFileId`. The country, base currency and
|
|
621
|
+
# company and sets `logoFileId`. The country, base currency, sandbox flag and cash-basis flag are fixed at
|
|
622
|
+
# creation.
|
|
622
623
|
#
|
|
623
624
|
# @param request_options [Hash]
|
|
624
625
|
# @param params [Nordlet::Account::Types::CompaniesUpdateAccountRequest]
|
|
@@ -32,6 +32,20 @@ module Nordlet
|
|
|
32
32
|
|
|
33
33
|
field :bank_name, -> { String }, optional: true, nullable: false, api_name: "bankName"
|
|
34
34
|
|
|
35
|
+
field :bank_bic, -> { String }, optional: true, nullable: false, api_name: "bankBic"
|
|
36
|
+
|
|
37
|
+
field :bank_code, -> { String }, optional: true, nullable: false, api_name: "bankCode"
|
|
38
|
+
|
|
39
|
+
field :bank_branch_code, -> { String }, optional: true, nullable: false, api_name: "bankBranchCode"
|
|
40
|
+
|
|
41
|
+
field :bank_account_number, -> { String }, optional: true, nullable: false, api_name: "bankAccountNumber"
|
|
42
|
+
|
|
43
|
+
field :invoice_prefix, -> { String }, optional: true, nullable: false, api_name: "invoicePrefix"
|
|
44
|
+
|
|
45
|
+
field :default_invoice_locale, -> { Nordlet::Account::Types::CompaniesCreateAccountRequestDefaultInvoiceLocale }, optional: true, nullable: false, api_name: "defaultInvoiceLocale"
|
|
46
|
+
|
|
47
|
+
field :default_invoice_note, -> { String }, optional: true, nullable: false, api_name: "defaultInvoiceNote"
|
|
48
|
+
|
|
35
49
|
field :peppol_id, -> { String }, optional: true, nullable: false, api_name: "peppolId"
|
|
36
50
|
|
|
37
51
|
field :sepa_creditor_id, -> { String }, optional: true, nullable: false, api_name: "sepaCreditorId"
|
|
@@ -61,6 +75,8 @@ module Nordlet
|
|
|
61
75
|
field :base_currency, -> { String }, optional: true, nullable: false, api_name: "baseCurrency"
|
|
62
76
|
|
|
63
77
|
field :is_sandbox, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "isSandbox"
|
|
78
|
+
|
|
79
|
+
field :cash_basis, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "cashBasis"
|
|
64
80
|
end
|
|
65
81
|
end
|
|
66
82
|
end
|
|
@@ -6,36 +6,255 @@ module Nordlet
|
|
|
6
6
|
module CompaniesCreateAccountRequestCountryCode
|
|
7
7
|
extend Nordlet::Internal::Types::Enum
|
|
8
8
|
|
|
9
|
+
AD = "AD"
|
|
10
|
+
AE = "AE"
|
|
11
|
+
AF = "AF"
|
|
12
|
+
AG = "AG"
|
|
13
|
+
AI = "AI"
|
|
14
|
+
AL = "AL"
|
|
15
|
+
AM = "AM"
|
|
16
|
+
AO = "AO"
|
|
17
|
+
AQ = "AQ"
|
|
18
|
+
AR = "AR"
|
|
19
|
+
AS = "AS"
|
|
9
20
|
AT = "AT"
|
|
21
|
+
AU = "AU"
|
|
22
|
+
AW = "AW"
|
|
23
|
+
AX = "AX"
|
|
24
|
+
AZ = "AZ"
|
|
25
|
+
BA = "BA"
|
|
26
|
+
BB = "BB"
|
|
27
|
+
BD = "BD"
|
|
10
28
|
BE = "BE"
|
|
29
|
+
BF = "BF"
|
|
11
30
|
BG = "BG"
|
|
31
|
+
BH = "BH"
|
|
32
|
+
BI = "BI"
|
|
33
|
+
BJ = "BJ"
|
|
34
|
+
BL = "BL"
|
|
35
|
+
BM = "BM"
|
|
36
|
+
BN = "BN"
|
|
37
|
+
BO = "BO"
|
|
38
|
+
BQ = "BQ"
|
|
39
|
+
BR = "BR"
|
|
40
|
+
BS = "BS"
|
|
41
|
+
BT = "BT"
|
|
42
|
+
BV = "BV"
|
|
43
|
+
BW = "BW"
|
|
44
|
+
BY = "BY"
|
|
45
|
+
BZ = "BZ"
|
|
46
|
+
CA = "CA"
|
|
47
|
+
CC = "CC"
|
|
48
|
+
CD = "CD"
|
|
49
|
+
CF = "CF"
|
|
50
|
+
CG = "CG"
|
|
51
|
+
CH = "CH"
|
|
52
|
+
CI = "CI"
|
|
53
|
+
CK = "CK"
|
|
54
|
+
CL = "CL"
|
|
55
|
+
CM = "CM"
|
|
56
|
+
CN = "CN"
|
|
57
|
+
CO = "CO"
|
|
58
|
+
CR = "CR"
|
|
59
|
+
CU = "CU"
|
|
60
|
+
CV = "CV"
|
|
61
|
+
CW = "CW"
|
|
62
|
+
CX = "CX"
|
|
12
63
|
CY = "CY"
|
|
13
64
|
CZ = "CZ"
|
|
14
65
|
DE = "DE"
|
|
66
|
+
DJ = "DJ"
|
|
15
67
|
DK = "DK"
|
|
68
|
+
DM = "DM"
|
|
69
|
+
DO = "DO"
|
|
70
|
+
DZ = "DZ"
|
|
71
|
+
EC = "EC"
|
|
16
72
|
EE = "EE"
|
|
73
|
+
EG = "EG"
|
|
74
|
+
EH = "EH"
|
|
75
|
+
ER = "ER"
|
|
17
76
|
ES = "ES"
|
|
77
|
+
ET = "ET"
|
|
18
78
|
FI = "FI"
|
|
79
|
+
FJ = "FJ"
|
|
80
|
+
FK = "FK"
|
|
81
|
+
FM = "FM"
|
|
82
|
+
FO = "FO"
|
|
19
83
|
FR = "FR"
|
|
84
|
+
GA = "GA"
|
|
85
|
+
GB = "GB"
|
|
86
|
+
GD = "GD"
|
|
87
|
+
GE = "GE"
|
|
88
|
+
GF = "GF"
|
|
89
|
+
GG = "GG"
|
|
90
|
+
GH = "GH"
|
|
91
|
+
GI = "GI"
|
|
92
|
+
GL = "GL"
|
|
93
|
+
GM = "GM"
|
|
94
|
+
GN = "GN"
|
|
95
|
+
GP = "GP"
|
|
96
|
+
GQ = "GQ"
|
|
20
97
|
GR = "GR"
|
|
98
|
+
GS = "GS"
|
|
99
|
+
GT = "GT"
|
|
100
|
+
GU = "GU"
|
|
101
|
+
GW = "GW"
|
|
102
|
+
GY = "GY"
|
|
103
|
+
HK = "HK"
|
|
104
|
+
HM = "HM"
|
|
105
|
+
HN = "HN"
|
|
21
106
|
HR = "HR"
|
|
107
|
+
HT = "HT"
|
|
22
108
|
HU = "HU"
|
|
109
|
+
ID = "ID"
|
|
23
110
|
IE = "IE"
|
|
111
|
+
IL = "IL"
|
|
112
|
+
IM = "IM"
|
|
113
|
+
IN = "IN"
|
|
114
|
+
IO = "IO"
|
|
115
|
+
IQ = "IQ"
|
|
116
|
+
IR = "IR"
|
|
117
|
+
IS = "IS"
|
|
24
118
|
IT = "IT"
|
|
119
|
+
JE = "JE"
|
|
120
|
+
JM = "JM"
|
|
121
|
+
JO = "JO"
|
|
122
|
+
JP = "JP"
|
|
123
|
+
KE = "KE"
|
|
124
|
+
KG = "KG"
|
|
125
|
+
KH = "KH"
|
|
126
|
+
KI = "KI"
|
|
127
|
+
KM = "KM"
|
|
128
|
+
KN = "KN"
|
|
129
|
+
KP = "KP"
|
|
130
|
+
KR = "KR"
|
|
131
|
+
KW = "KW"
|
|
132
|
+
KY = "KY"
|
|
133
|
+
KZ = "KZ"
|
|
134
|
+
LA = "LA"
|
|
135
|
+
LB = "LB"
|
|
136
|
+
LC = "LC"
|
|
137
|
+
LI = "LI"
|
|
138
|
+
LK = "LK"
|
|
139
|
+
LR = "LR"
|
|
140
|
+
LS = "LS"
|
|
25
141
|
LT = "LT"
|
|
26
142
|
LU = "LU"
|
|
27
143
|
LV = "LV"
|
|
144
|
+
LY = "LY"
|
|
145
|
+
MA = "MA"
|
|
146
|
+
MC = "MC"
|
|
147
|
+
MD = "MD"
|
|
148
|
+
ME = "ME"
|
|
149
|
+
MF = "MF"
|
|
150
|
+
MG = "MG"
|
|
151
|
+
MH = "MH"
|
|
152
|
+
MK = "MK"
|
|
153
|
+
ML = "ML"
|
|
154
|
+
MM = "MM"
|
|
155
|
+
MN = "MN"
|
|
156
|
+
MO = "MO"
|
|
157
|
+
MP = "MP"
|
|
158
|
+
MQ = "MQ"
|
|
159
|
+
MR = "MR"
|
|
160
|
+
MS = "MS"
|
|
28
161
|
MT = "MT"
|
|
162
|
+
MU = "MU"
|
|
163
|
+
MV = "MV"
|
|
164
|
+
MW = "MW"
|
|
165
|
+
MX = "MX"
|
|
166
|
+
MY = "MY"
|
|
167
|
+
MZ = "MZ"
|
|
168
|
+
NA = "NA"
|
|
169
|
+
NC = "NC"
|
|
170
|
+
NE = "NE"
|
|
171
|
+
NF = "NF"
|
|
172
|
+
NG = "NG"
|
|
173
|
+
NI = "NI"
|
|
29
174
|
NL = "NL"
|
|
175
|
+
NO = "NO"
|
|
176
|
+
NP = "NP"
|
|
177
|
+
NR = "NR"
|
|
178
|
+
NU = "NU"
|
|
179
|
+
NZ = "NZ"
|
|
180
|
+
OM = "OM"
|
|
181
|
+
PA = "PA"
|
|
182
|
+
PE = "PE"
|
|
183
|
+
PF = "PF"
|
|
184
|
+
PG = "PG"
|
|
185
|
+
PH = "PH"
|
|
186
|
+
PK = "PK"
|
|
30
187
|
PL = "PL"
|
|
188
|
+
PM = "PM"
|
|
189
|
+
PN = "PN"
|
|
190
|
+
PR = "PR"
|
|
191
|
+
PS = "PS"
|
|
31
192
|
PT = "PT"
|
|
193
|
+
PW = "PW"
|
|
194
|
+
PY = "PY"
|
|
195
|
+
QA = "QA"
|
|
196
|
+
RE = "RE"
|
|
32
197
|
RO = "RO"
|
|
198
|
+
RS = "RS"
|
|
199
|
+
RU = "RU"
|
|
200
|
+
RW = "RW"
|
|
201
|
+
SA = "SA"
|
|
202
|
+
SB = "SB"
|
|
203
|
+
SC = "SC"
|
|
204
|
+
SD = "SD"
|
|
33
205
|
SE = "SE"
|
|
206
|
+
SG = "SG"
|
|
207
|
+
SH = "SH"
|
|
34
208
|
SI = "SI"
|
|
209
|
+
SJ = "SJ"
|
|
35
210
|
SK = "SK"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
211
|
+
SL = "SL"
|
|
212
|
+
SM = "SM"
|
|
213
|
+
SN = "SN"
|
|
214
|
+
SO = "SO"
|
|
215
|
+
SR = "SR"
|
|
216
|
+
SS = "SS"
|
|
217
|
+
ST = "ST"
|
|
218
|
+
SV = "SV"
|
|
219
|
+
SX = "SX"
|
|
220
|
+
SY = "SY"
|
|
221
|
+
SZ = "SZ"
|
|
222
|
+
TC = "TC"
|
|
223
|
+
TD = "TD"
|
|
224
|
+
TF = "TF"
|
|
225
|
+
TG = "TG"
|
|
226
|
+
TH = "TH"
|
|
227
|
+
TJ = "TJ"
|
|
228
|
+
TK = "TK"
|
|
229
|
+
TL = "TL"
|
|
230
|
+
TM = "TM"
|
|
231
|
+
TN = "TN"
|
|
232
|
+
TO = "TO"
|
|
233
|
+
TR = "TR"
|
|
234
|
+
TT = "TT"
|
|
235
|
+
TV = "TV"
|
|
236
|
+
TW = "TW"
|
|
237
|
+
TZ = "TZ"
|
|
238
|
+
UA = "UA"
|
|
239
|
+
UG = "UG"
|
|
240
|
+
UM = "UM"
|
|
241
|
+
US = "US"
|
|
242
|
+
UY = "UY"
|
|
243
|
+
UZ = "UZ"
|
|
244
|
+
VA = "VA"
|
|
245
|
+
VC = "VC"
|
|
246
|
+
VE = "VE"
|
|
247
|
+
VG = "VG"
|
|
248
|
+
VI = "VI"
|
|
249
|
+
VN = "VN"
|
|
250
|
+
VU = "VU"
|
|
251
|
+
WF = "WF"
|
|
252
|
+
WS = "WS"
|
|
253
|
+
YE = "YE"
|
|
254
|
+
YT = "YT"
|
|
255
|
+
ZA = "ZA"
|
|
256
|
+
ZM = "ZM"
|
|
257
|
+
ZW = "ZW"
|
|
39
258
|
end
|
|
40
259
|
end
|
|
41
260
|
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Account
|
|
5
|
+
module Types
|
|
6
|
+
module CompaniesCreateAccountRequestDefaultInvoiceLocale
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
EN = "en"
|
|
10
|
+
LT = "lt"
|
|
11
|
+
DE = "de"
|
|
12
|
+
FR = "fr"
|
|
13
|
+
ES = "es"
|
|
14
|
+
IT = "it"
|
|
15
|
+
PT = "pt"
|
|
16
|
+
NL = "nl"
|
|
17
|
+
PL = "pl"
|
|
18
|
+
SV = "sv"
|
|
19
|
+
DA = "da"
|
|
20
|
+
NO = "no"
|
|
21
|
+
FI = "fi"
|
|
22
|
+
ET = "et"
|
|
23
|
+
LV = "lv"
|
|
24
|
+
CS = "cs"
|
|
25
|
+
SK = "sk"
|
|
26
|
+
HU = "hu"
|
|
27
|
+
RO = "ro"
|
|
28
|
+
BG = "bg"
|
|
29
|
+
HR = "hr"
|
|
30
|
+
SL = "sl"
|
|
31
|
+
EL = "el"
|
|
32
|
+
MT = "mt"
|
|
33
|
+
IS = "is"
|
|
34
|
+
GA = "ga"
|
|
35
|
+
ZH = "zh"
|
|
36
|
+
JA = "ja"
|
|
37
|
+
AR = "ar"
|
|
38
|
+
HI = "hi"
|
|
39
|
+
RU = "ru"
|
|
40
|
+
TR = "tr"
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -15,6 +15,8 @@ module Nordlet
|
|
|
15
15
|
field :role, -> { String }, optional: false, nullable: false
|
|
16
16
|
|
|
17
17
|
field :is_sandbox, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isSandbox"
|
|
18
|
+
|
|
19
|
+
field :cash_basis, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "cashBasis"
|
|
18
20
|
end
|
|
19
21
|
end
|
|
20
22
|
end
|
|
@@ -18,6 +18,8 @@ module Nordlet
|
|
|
18
18
|
|
|
19
19
|
field :is_sandbox, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isSandbox"
|
|
20
20
|
|
|
21
|
+
field :cash_basis, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "cashBasis"
|
|
22
|
+
|
|
21
23
|
field :country_code, -> { String }, optional: false, nullable: false, api_name: "countryCode"
|
|
22
24
|
|
|
23
25
|
field :chart_template, -> { String }, optional: false, nullable: false, api_name: "chartTemplate"
|
|
@@ -40,6 +42,22 @@ module Nordlet
|
|
|
40
42
|
|
|
41
43
|
field :bank_name, -> { String }, optional: false, nullable: true, api_name: "bankName"
|
|
42
44
|
|
|
45
|
+
field :bank_bic, -> { String }, optional: false, nullable: true, api_name: "bankBic"
|
|
46
|
+
|
|
47
|
+
field :bank_code, -> { String }, optional: false, nullable: true, api_name: "bankCode"
|
|
48
|
+
|
|
49
|
+
field :bank_branch_code, -> { String }, optional: false, nullable: true, api_name: "bankBranchCode"
|
|
50
|
+
|
|
51
|
+
field :bank_account_number, -> { String }, optional: false, nullable: true, api_name: "bankAccountNumber"
|
|
52
|
+
|
|
53
|
+
field :invoice_prefix, -> { String }, optional: false, nullable: false, api_name: "invoicePrefix"
|
|
54
|
+
|
|
55
|
+
field :next_invoice_number, -> { String }, optional: false, nullable: false, api_name: "nextInvoiceNumber"
|
|
56
|
+
|
|
57
|
+
field :default_invoice_locale, -> { String }, optional: false, nullable: true, api_name: "defaultInvoiceLocale"
|
|
58
|
+
|
|
59
|
+
field :default_invoice_note, -> { String }, optional: false, nullable: true, api_name: "defaultInvoiceNote"
|
|
60
|
+
|
|
43
61
|
field :peppol_id, -> { String }, optional: false, nullable: true, api_name: "peppolId"
|
|
44
62
|
|
|
45
63
|
field :sepa_creditor_id, -> { String }, optional: false, nullable: true, api_name: "sepaCreditorId"
|
|
@@ -32,6 +32,20 @@ module Nordlet
|
|
|
32
32
|
|
|
33
33
|
field :bank_name, -> { String }, optional: true, nullable: false, api_name: "bankName"
|
|
34
34
|
|
|
35
|
+
field :bank_bic, -> { String }, optional: true, nullable: false, api_name: "bankBic"
|
|
36
|
+
|
|
37
|
+
field :bank_code, -> { String }, optional: true, nullable: false, api_name: "bankCode"
|
|
38
|
+
|
|
39
|
+
field :bank_branch_code, -> { String }, optional: true, nullable: false, api_name: "bankBranchCode"
|
|
40
|
+
|
|
41
|
+
field :bank_account_number, -> { String }, optional: true, nullable: false, api_name: "bankAccountNumber"
|
|
42
|
+
|
|
43
|
+
field :invoice_prefix, -> { String }, optional: true, nullable: false, api_name: "invoicePrefix"
|
|
44
|
+
|
|
45
|
+
field :default_invoice_locale, -> { Nordlet::Account::Types::CompaniesUpdateAccountRequestDefaultInvoiceLocale }, optional: true, nullable: false, api_name: "defaultInvoiceLocale"
|
|
46
|
+
|
|
47
|
+
field :default_invoice_note, -> { String }, optional: true, nullable: false, api_name: "defaultInvoiceNote"
|
|
48
|
+
|
|
35
49
|
field :peppol_id, -> { String }, optional: true, nullable: false, api_name: "peppolId"
|
|
36
50
|
|
|
37
51
|
field :sepa_creditor_id, -> { String }, optional: true, nullable: false, api_name: "sepaCreditorId"
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Account
|
|
5
|
+
module Types
|
|
6
|
+
module CompaniesUpdateAccountRequestDefaultInvoiceLocale
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
EN = "en"
|
|
10
|
+
LT = "lt"
|
|
11
|
+
DE = "de"
|
|
12
|
+
FR = "fr"
|
|
13
|
+
ES = "es"
|
|
14
|
+
IT = "it"
|
|
15
|
+
PT = "pt"
|
|
16
|
+
NL = "nl"
|
|
17
|
+
PL = "pl"
|
|
18
|
+
SV = "sv"
|
|
19
|
+
DA = "da"
|
|
20
|
+
NO = "no"
|
|
21
|
+
FI = "fi"
|
|
22
|
+
ET = "et"
|
|
23
|
+
LV = "lv"
|
|
24
|
+
CS = "cs"
|
|
25
|
+
SK = "sk"
|
|
26
|
+
HU = "hu"
|
|
27
|
+
RO = "ro"
|
|
28
|
+
BG = "bg"
|
|
29
|
+
HR = "hr"
|
|
30
|
+
SL = "sl"
|
|
31
|
+
EL = "el"
|
|
32
|
+
MT = "mt"
|
|
33
|
+
IS = "is"
|
|
34
|
+
GA = "ga"
|
|
35
|
+
ZH = "zh"
|
|
36
|
+
JA = "ja"
|
|
37
|
+
AR = "ar"
|
|
38
|
+
HI = "hi"
|
|
39
|
+
RU = "ru"
|
|
40
|
+
TR = "tr"
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -18,6 +18,8 @@ module Nordlet
|
|
|
18
18
|
|
|
19
19
|
field :is_sandbox, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isSandbox"
|
|
20
20
|
|
|
21
|
+
field :cash_basis, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "cashBasis"
|
|
22
|
+
|
|
21
23
|
field :country_code, -> { String }, optional: false, nullable: false, api_name: "countryCode"
|
|
22
24
|
|
|
23
25
|
field :chart_template, -> { String }, optional: false, nullable: false, api_name: "chartTemplate"
|
|
@@ -40,6 +42,22 @@ module Nordlet
|
|
|
40
42
|
|
|
41
43
|
field :bank_name, -> { String }, optional: false, nullable: true, api_name: "bankName"
|
|
42
44
|
|
|
45
|
+
field :bank_bic, -> { String }, optional: false, nullable: true, api_name: "bankBic"
|
|
46
|
+
|
|
47
|
+
field :bank_code, -> { String }, optional: false, nullable: true, api_name: "bankCode"
|
|
48
|
+
|
|
49
|
+
field :bank_branch_code, -> { String }, optional: false, nullable: true, api_name: "bankBranchCode"
|
|
50
|
+
|
|
51
|
+
field :bank_account_number, -> { String }, optional: false, nullable: true, api_name: "bankAccountNumber"
|
|
52
|
+
|
|
53
|
+
field :invoice_prefix, -> { String }, optional: false, nullable: false, api_name: "invoicePrefix"
|
|
54
|
+
|
|
55
|
+
field :next_invoice_number, -> { String }, optional: false, nullable: false, api_name: "nextInvoiceNumber"
|
|
56
|
+
|
|
57
|
+
field :default_invoice_locale, -> { String }, optional: false, nullable: true, api_name: "defaultInvoiceLocale"
|
|
58
|
+
|
|
59
|
+
field :default_invoice_note, -> { String }, optional: false, nullable: true, api_name: "defaultInvoiceNote"
|
|
60
|
+
|
|
43
61
|
field :peppol_id, -> { String }, optional: false, nullable: true, api_name: "peppolId"
|
|
44
62
|
|
|
45
63
|
field :sepa_creditor_id, -> { String }, optional: false, nullable: true, api_name: "sepaCreditorId"
|
|
@@ -16,6 +16,8 @@ module Nordlet
|
|
|
16
16
|
|
|
17
17
|
field :is_sandbox, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isSandbox"
|
|
18
18
|
|
|
19
|
+
field :cash_basis, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "cashBasis"
|
|
20
|
+
|
|
19
21
|
field :status, -> { Nordlet::Account::Types::MeAccountResponseCompaniesItemStatus }, optional: false, nullable: false
|
|
20
22
|
|
|
21
23
|
field :deleted_at, -> { String }, optional: false, nullable: true, api_name: "deletedAt"
|
|
@@ -262,9 +262,10 @@ module Nordlet
|
|
|
262
262
|
end
|
|
263
263
|
|
|
264
264
|
# Open a Stripe Checkout session for a flat-rate subscription on `plan`, with the trial period of `trialDays`
|
|
265
|
-
# days, and return its URL; a Stripe customer is created for the user when there is none.
|
|
266
|
-
#
|
|
267
|
-
#
|
|
265
|
+
# days, and return its URL; a Stripe customer is created for the user when there is none. The `invoicing` plan of
|
|
266
|
+
# the invoice tool takes its trial days from the server setting `INVOICE_PLAN_TRIAL_DAYS` and returns to the
|
|
267
|
+
# invoice app. Answers 409 when a flat-rate subscription is already active and 503 when online payments are not
|
|
268
|
+
# configured, the plan has no price, or the Invoicing trial is not set.
|
|
268
269
|
#
|
|
269
270
|
# @param request_options [Hash]
|
|
270
271
|
# @param params [Nordlet::Billing::Types::FlatRateCreateBillingRequest]
|
|
@@ -334,6 +335,42 @@ module Nordlet
|
|
|
334
335
|
end
|
|
335
336
|
end
|
|
336
337
|
|
|
338
|
+
# Cancel the user's Stripe subscription at the end of the period already paid: the plan stays active until
|
|
339
|
+
# `subscriptionCancelAt`, and Stripe then ends the subscription, which its `customer.subscription.deleted` webhook
|
|
340
|
+
# records. Answers 503 when online payments are not configured and 409 when the account has no subscription.
|
|
341
|
+
#
|
|
342
|
+
# @param request_options [Hash]
|
|
343
|
+
# @param params [Nordlet::Billing::Types::SubscriptionCancelBillingRequest]
|
|
344
|
+
# @option request_options [String] :base_url
|
|
345
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
346
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
347
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
348
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
349
|
+
#
|
|
350
|
+
# @return [Nordlet::Billing::Types::SubscriptionCancelBillingResponse]
|
|
351
|
+
def subscription_cancel(request_options: {}, **params)
|
|
352
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
353
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
354
|
+
base_url: request_options[:base_url],
|
|
355
|
+
method: "POST",
|
|
356
|
+
path: "v1/billing/subscription/cancel",
|
|
357
|
+
body: Nordlet::Billing::Types::SubscriptionCancelBillingRequest.new(params).to_h,
|
|
358
|
+
request_options: request_options
|
|
359
|
+
)
|
|
360
|
+
begin
|
|
361
|
+
response = @client.send(request)
|
|
362
|
+
rescue Net::HTTPRequestTimeout
|
|
363
|
+
raise Nordlet::Errors::TimeoutError
|
|
364
|
+
end
|
|
365
|
+
code = response.code.to_i
|
|
366
|
+
if code.between?(200, 299)
|
|
367
|
+
Nordlet::Billing::Types::SubscriptionCancelBillingResponse.load(response.body)
|
|
368
|
+
else
|
|
369
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
370
|
+
raise error_class.new(response.body, code: code)
|
|
371
|
+
end
|
|
372
|
+
end
|
|
373
|
+
|
|
337
374
|
# Open a Stripe customer portal session that returns to the credits page in `locale`, and return its URL. Answers
|
|
338
375
|
# 503 when online payments are not configured and 400 when the user has no Stripe customer yet.
|
|
339
376
|
#
|
|
@@ -24,6 +24,8 @@ module Nordlet
|
|
|
24
24
|
|
|
25
25
|
field :has_subscription, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "hasSubscription"
|
|
26
26
|
|
|
27
|
+
field :subscription_cancel_at, -> { String }, optional: false, nullable: true, api_name: "subscriptionCancelAt"
|
|
28
|
+
|
|
27
29
|
field :payment_failed_at, -> { String }, optional: false, nullable: true, api_name: "paymentFailedAt"
|
|
28
30
|
|
|
29
31
|
field :payment_failed_invoice_url, -> { String }, optional: false, nullable: true, api_name: "paymentFailedInvoiceUrl"
|
|
@@ -24,6 +24,8 @@ module Nordlet
|
|
|
24
24
|
|
|
25
25
|
field :has_subscription, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "hasSubscription"
|
|
26
26
|
|
|
27
|
+
field :subscription_cancel_at, -> { String }, optional: false, nullable: true, api_name: "subscriptionCancelAt"
|
|
28
|
+
|
|
27
29
|
field :payment_failed_at, -> { String }, optional: false, nullable: true, api_name: "paymentFailedAt"
|
|
28
30
|
|
|
29
31
|
field :payment_failed_invoice_url, -> { String }, optional: false, nullable: true, api_name: "paymentFailedInvoiceUrl"
|
|
@@ -24,6 +24,8 @@ module Nordlet
|
|
|
24
24
|
|
|
25
25
|
field :has_subscription, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "hasSubscription"
|
|
26
26
|
|
|
27
|
+
field :subscription_cancel_at, -> { String }, optional: false, nullable: true, api_name: "subscriptionCancelAt"
|
|
28
|
+
|
|
27
29
|
field :payment_failed_at, -> { String }, optional: false, nullable: true, api_name: "paymentFailedAt"
|
|
28
30
|
|
|
29
31
|
field :payment_failed_invoice_url, -> { String }, optional: false, nullable: true, api_name: "paymentFailedInvoiceUrl"
|
|
@@ -24,6 +24,8 @@ module Nordlet
|
|
|
24
24
|
|
|
25
25
|
field :has_subscription, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "hasSubscription"
|
|
26
26
|
|
|
27
|
+
field :subscription_cancel_at, -> { String }, optional: false, nullable: true, api_name: "subscriptionCancelAt"
|
|
28
|
+
|
|
27
29
|
field :payment_failed_at, -> { String }, optional: false, nullable: true, api_name: "paymentFailedAt"
|
|
28
30
|
|
|
29
31
|
field :payment_failed_invoice_url, -> { String }, optional: false, nullable: true, api_name: "paymentFailedInvoiceUrl"
|
|
@@ -24,6 +24,8 @@ module Nordlet
|
|
|
24
24
|
|
|
25
25
|
field :has_subscription, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "hasSubscription"
|
|
26
26
|
|
|
27
|
+
field :subscription_cancel_at, -> { String }, optional: false, nullable: true, api_name: "subscriptionCancelAt"
|
|
28
|
+
|
|
27
29
|
field :payment_failed_at, -> { String }, optional: false, nullable: true, api_name: "paymentFailedAt"
|
|
28
30
|
|
|
29
31
|
field :payment_failed_invoice_url, -> { String }, optional: false, nullable: true, api_name: "paymentFailedInvoiceUrl"
|