nordlet 0.5.7 → 0.6.3
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 +133 -16
- data/lib/nordlet/account/types/api_keys_list_account_response_rows_item.rb +0 -2
- data/lib/nordlet/account/types/companies_create_account_request_default_invoice_locale.rb +1 -0
- data/lib/nordlet/account/types/companies_update_account_request_default_invoice_locale.rb +1 -0
- data/lib/nordlet/account/types/email_change_request_account_request_locale.rb +30 -0
- data/lib/nordlet/account/types/export_account_response.rb +2 -0
- data/lib/nordlet/account/types/export_account_response_billing_accounts_item.rb +21 -0
- data/lib/nordlet/account/types/export_account_response_billing_accounts_item_site.rb +14 -0
- data/lib/nordlet/account/types/export_account_response_credit_transactions_item.rb +2 -0
- data/lib/nordlet/account/types/export_account_response_credit_transactions_item_site.rb +14 -0
- data/lib/nordlet/account/types/invites_accept_account_request_locale.rb +30 -0
- data/lib/nordlet/account/types/invites_create_account_request_locale.rb +30 -0
- data/lib/nordlet/account/types/locale_set_account_request_locale.rb +30 -0
- data/lib/nordlet/account/types/login_link_request_account_request_locale.rb +30 -0
- data/lib/nordlet/account/types/oauth_authorize_approve_account_request.rb +25 -0
- data/lib/nordlet/account/types/oauth_authorize_approve_account_response.rb +11 -0
- data/lib/nordlet/account/types/oauth_authorize_deny_account_request.rb +25 -0
- data/lib/nordlet/account/types/oauth_authorize_deny_account_response.rb +11 -0
- data/lib/nordlet/account/types/oauth_authorize_describe_account_request.rb +25 -0
- data/lib/nordlet/account/types/oauth_authorize_describe_account_response.rb +17 -0
- data/lib/nordlet/agreements/types/agreements_create_agreements_request_items_item.rb +2 -0
- data/lib/nordlet/agreements/types/agreements_create_agreements_response_items_item.rb +2 -0
- data/lib/nordlet/agreements/types/agreements_get_agreements_response_items_item.rb +2 -0
- data/lib/nordlet/agreements/types/agreements_update_agreements_response_items_item.rb +2 -0
- data/lib/nordlet/bank/client.rb +4 -3
- data/lib/nordlet/bank/types/import_templates_create_bank_request.rb +2 -0
- data/lib/nordlet/bank/types/import_templates_create_bank_response.rb +2 -0
- data/lib/nordlet/bank/types/import_templates_get_bank_response.rb +2 -0
- data/lib/nordlet/bank/types/import_templates_list_bank_response_rows_item.rb +2 -0
- data/lib/nordlet/bank/types/import_templates_list_builtin_bank_response_rows_item.rb +2 -0
- data/lib/nordlet/bank/types/import_templates_update_bank_request.rb +2 -0
- data/lib/nordlet/bank/types/import_templates_update_bank_response.rb +2 -0
- data/lib/nordlet/billing/client.rb +42 -31
- data/lib/nordlet/billing/types/account_get_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/account_get_billing_response_site.rb +14 -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_site.rb +14 -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_site.rb +14 -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_site.rb +14 -0
- data/lib/nordlet/billing/types/account_set_plan_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/account_set_plan_billing_response_site.rb +14 -0
- data/lib/nordlet/billing/types/flat_rate_confirm_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_site.rb +14 -0
- data/lib/nordlet/billing/types/flat_rate_create_billing_request_locale.rb +30 -0
- data/lib/nordlet/billing/types/portal_create_billing_request_locale.rb +30 -0
- data/lib/nordlet/billing/types/subscription_cancel_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/subscription_cancel_billing_response_site.rb +14 -0
- data/lib/nordlet/billing/types/topup_confirm_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/topup_confirm_billing_response_site.rb +14 -0
- data/lib/nordlet/billing/types/topup_create_billing_request_locale.rb +30 -0
- data/lib/nordlet/billing/types/usage_list_billing_response_rows_item.rb +2 -0
- data/lib/nordlet/billing/types/usage_list_billing_response_rows_item_site.rb +14 -0
- data/lib/nordlet/catalog/types/units_options_catalog_request_locale.rb +30 -0
- data/lib/nordlet/ecommerce/types/orders_cancel_ecommerce_response_lines_item.rb +2 -0
- data/lib/nordlet/ecommerce/types/orders_create_ecommerce_request_lines_item.rb +2 -0
- data/lib/nordlet/ecommerce/types/orders_create_ecommerce_response_lines_item.rb +2 -0
- data/lib/nordlet/ecommerce/types/orders_fulfill_ecommerce_response_lines_item.rb +2 -0
- data/lib/nordlet/ecommerce/types/orders_get_ecommerce_response_lines_item.rb +2 -0
- data/lib/nordlet/ecommerce/types/orders_reserve_ecommerce_response_lines_item.rb +2 -0
- data/lib/nordlet/partners/types/create_partners_request_invoice_locale.rb +1 -0
- data/lib/nordlet/partners/types/debt_reminders_preview_partners_response_rows_item_locale.rb +30 -0
- data/lib/nordlet/partners/types/find_or_create_partners_request_invoice_locale.rb +1 -0
- data/lib/nordlet/partners/types/update_partners_request_invoice_locale.rb +1 -0
- data/lib/nordlet/payroll/types/payments_export_payroll_request_locale.rb +30 -0
- data/lib/nordlet/reference/client.rb +5 -2
- data/lib/nordlet/reference/types/vat_classifiers_list_reference_response_rows_item.rb +8 -0
- data/lib/nordlet/reference/types/vat_classifiers_list_reference_response_rows_item_rate_from_line.rb +13 -0
- data/lib/nordlet/reference/types/vat_classifiers_list_reference_response_rows_item_scheme.rb +21 -0
- data/lib/nordlet/reference/types/vat_classifiers_list_reference_response_rows_item_side.rb +15 -0
- data/lib/nordlet/sales/client.rb +3 -2
- data/lib/nordlet/sales/types/acts_pdf_sales_request_locale.rb +30 -0
- data/lib/nordlet/sales/types/invoice_templates_create_sales_request_lines_item.rb +2 -0
- data/lib/nordlet/sales/types/invoice_templates_create_sales_response_lines_item.rb +2 -0
- data/lib/nordlet/sales/types/invoice_templates_get_sales_response_lines_item.rb +2 -0
- data/lib/nordlet/sales/types/invoice_templates_list_sales_response_rows_item_lines_item.rb +2 -0
- data/lib/nordlet/sales/types/invoice_templates_update_sales_request_lines_item.rb +2 -0
- data/lib/nordlet/sales/types/invoice_templates_update_sales_response_lines_item.rb +2 -0
- data/lib/nordlet/sales/types/invoices_create_sales_request_locale.rb +1 -0
- data/lib/nordlet/sales/types/invoices_pdf_sales_request_locale.rb +1 -0
- data/lib/nordlet/sales/types/invoices_send_sales_request_locale.rb +1 -0
- data/lib/nordlet/sales/types/invoices_update_sales_request_locale.rb +1 -0
- data/lib/nordlet/sales/types/recurring_invoices_create_sales_request_locale.rb +1 -0
- data/lib/nordlet/sales/types/recurring_invoices_update_sales_request_locale.rb +1 -0
- data/lib/nordlet/version.rb +1 -1
- data/lib/nordlet.rb +21 -0
- data/reference.md +394 -24
- metadata +23 -2
|
@@ -15,6 +15,8 @@ module Nordlet
|
|
|
15
15
|
field :unit_price, -> { String }, optional: false, nullable: true, api_name: "unitPrice"
|
|
16
16
|
|
|
17
17
|
field :vat_rate_percent, -> { String }, optional: false, nullable: true, api_name: "vatRatePercent"
|
|
18
|
+
|
|
19
|
+
field :vat_classifier_code, -> { String }, optional: false, nullable: true, api_name: "vatClassifierCode"
|
|
18
20
|
end
|
|
19
21
|
end
|
|
20
22
|
end
|
|
@@ -15,6 +15,8 @@ module Nordlet
|
|
|
15
15
|
field :unit_price, -> { String }, optional: false, nullable: true, api_name: "unitPrice"
|
|
16
16
|
|
|
17
17
|
field :vat_rate_percent, -> { String }, optional: false, nullable: true, api_name: "vatRatePercent"
|
|
18
|
+
|
|
19
|
+
field :vat_classifier_code, -> { String }, optional: false, nullable: true, api_name: "vatClassifierCode"
|
|
18
20
|
end
|
|
19
21
|
end
|
|
20
22
|
end
|
data/lib/nordlet/bank/client.rb
CHANGED
|
@@ -427,9 +427,10 @@ module Nordlet
|
|
|
427
427
|
# A template of type stripe, iso20022, revolut or bank_connection names the fields of the file or feed: a field
|
|
428
428
|
# with an `accountCode` is posted to that ledger account on import, a field with `createPartner` creates the
|
|
429
429
|
# customer, supplier or fee partner. `invoiceMetaField` is the Stripe metadata key (stripe) or the reference field
|
|
430
|
-
# (other types) by which payments are linked to invoices; with it `
|
|
431
|
-
# outside Stripe, `advanceInvoices` apply. `companyMetaField`,
|
|
432
|
-
# refund labels are for Stripe templates only. A template with the
|
|
430
|
+
# (other types) by which payments are linked to invoices; with it `invoiceVatClassifierCode`,
|
|
431
|
+
# `invoiceVatRatePercent`, `invoiceItemId` and, outside Stripe, `advanceInvoices` apply. `companyMetaField`,
|
|
432
|
+
# `lenderMetaField`, the operation types and the refund labels are for Stripe templates only. A template with the
|
|
433
|
+
# same name already existing answers 409.
|
|
433
434
|
#
|
|
434
435
|
# @param request_options [Hash]
|
|
435
436
|
# @param params [Nordlet::Bank::Types::ImportTemplatesCreateBankRequest]
|
|
@@ -16,6 +16,8 @@ module Nordlet
|
|
|
16
16
|
|
|
17
17
|
field :invoice_vat_rate_percent, -> { String }, optional: true, nullable: false, api_name: "invoiceVatRatePercent"
|
|
18
18
|
|
|
19
|
+
field :invoice_vat_classifier_code, -> { String }, optional: true, nullable: false, api_name: "invoiceVatClassifierCode"
|
|
20
|
+
|
|
19
21
|
field :company_meta_field, -> { String }, optional: true, nullable: false, api_name: "companyMetaField"
|
|
20
22
|
|
|
21
23
|
field :invoice_item_id, -> { String }, optional: true, nullable: false, api_name: "invoiceItemId"
|
|
@@ -18,6 +18,8 @@ module Nordlet
|
|
|
18
18
|
|
|
19
19
|
field :invoice_vat_rate_percent, -> { String }, optional: false, nullable: true, api_name: "invoiceVatRatePercent"
|
|
20
20
|
|
|
21
|
+
field :invoice_vat_classifier_code, -> { String }, optional: false, nullable: true, api_name: "invoiceVatClassifierCode"
|
|
22
|
+
|
|
21
23
|
field :company_meta_field, -> { String }, optional: false, nullable: true, api_name: "companyMetaField"
|
|
22
24
|
|
|
23
25
|
field :invoice_item_id, -> { String }, optional: false, nullable: true, api_name: "invoiceItemId"
|
|
@@ -18,6 +18,8 @@ module Nordlet
|
|
|
18
18
|
|
|
19
19
|
field :invoice_vat_rate_percent, -> { String }, optional: false, nullable: true, api_name: "invoiceVatRatePercent"
|
|
20
20
|
|
|
21
|
+
field :invoice_vat_classifier_code, -> { String }, optional: false, nullable: true, api_name: "invoiceVatClassifierCode"
|
|
22
|
+
|
|
21
23
|
field :company_meta_field, -> { String }, optional: false, nullable: true, api_name: "companyMetaField"
|
|
22
24
|
|
|
23
25
|
field :invoice_item_id, -> { String }, optional: false, nullable: true, api_name: "invoiceItemId"
|
|
@@ -18,6 +18,8 @@ module Nordlet
|
|
|
18
18
|
|
|
19
19
|
field :invoice_vat_rate_percent, -> { String }, optional: false, nullable: true, api_name: "invoiceVatRatePercent"
|
|
20
20
|
|
|
21
|
+
field :invoice_vat_classifier_code, -> { String }, optional: false, nullable: true, api_name: "invoiceVatClassifierCode"
|
|
22
|
+
|
|
21
23
|
field :company_meta_field, -> { String }, optional: false, nullable: true, api_name: "companyMetaField"
|
|
22
24
|
|
|
23
25
|
field :invoice_item_id, -> { String }, optional: false, nullable: true, api_name: "invoiceItemId"
|
|
@@ -18,6 +18,8 @@ module Nordlet
|
|
|
18
18
|
|
|
19
19
|
field :invoice_vat_rate_percent, -> { String }, optional: false, nullable: true, api_name: "invoiceVatRatePercent"
|
|
20
20
|
|
|
21
|
+
field :invoice_vat_classifier_code, -> { String }, optional: false, nullable: true, api_name: "invoiceVatClassifierCode"
|
|
22
|
+
|
|
21
23
|
field :company_meta_field, -> { String }, optional: false, nullable: true, api_name: "companyMetaField"
|
|
22
24
|
|
|
23
25
|
field :invoice_item_id, -> { String }, optional: false, nullable: true, api_name: "invoiceItemId"
|
|
@@ -16,6 +16,8 @@ module Nordlet
|
|
|
16
16
|
|
|
17
17
|
field :invoice_vat_rate_percent, -> { String }, optional: true, nullable: false, api_name: "invoiceVatRatePercent"
|
|
18
18
|
|
|
19
|
+
field :invoice_vat_classifier_code, -> { String }, optional: true, nullable: false, api_name: "invoiceVatClassifierCode"
|
|
20
|
+
|
|
19
21
|
field :company_meta_field, -> { String }, optional: true, nullable: false, api_name: "companyMetaField"
|
|
20
22
|
|
|
21
23
|
field :invoice_item_id, -> { String }, optional: true, nullable: false, api_name: "invoiceItemId"
|
|
@@ -18,6 +18,8 @@ module Nordlet
|
|
|
18
18
|
|
|
19
19
|
field :invoice_vat_rate_percent, -> { String }, optional: false, nullable: true, api_name: "invoiceVatRatePercent"
|
|
20
20
|
|
|
21
|
+
field :invoice_vat_classifier_code, -> { String }, optional: false, nullable: true, api_name: "invoiceVatClassifierCode"
|
|
22
|
+
|
|
21
23
|
field :company_meta_field, -> { String }, optional: false, nullable: true, api_name: "companyMetaField"
|
|
22
24
|
|
|
23
25
|
field :invoice_item_id, -> { String }, optional: false, nullable: true, api_name: "invoiceItemId"
|
|
@@ -10,9 +10,10 @@ module Nordlet
|
|
|
10
10
|
@client = client
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
-
# Return the signed-in user's billing account
|
|
14
|
-
#
|
|
15
|
-
#
|
|
13
|
+
# Return the signed-in user's billing account of the site named by the `x-nordlet-site` header (`app` when
|
|
14
|
+
# absent): plan, account type, status, balance, trial and payment state, the month-to-date usage of that site in
|
|
15
|
+
# the companies the user pays for with an estimate of today's charge, the plan catalogue, and the top-up,
|
|
16
|
+
# automatic top-up and overdraft settings. Each site has its own account and plan.
|
|
16
17
|
#
|
|
17
18
|
# @param request_options [Hash]
|
|
18
19
|
# @param params [Nordlet::Billing::Types::AccountGetBillingRequest]
|
|
@@ -46,8 +47,9 @@ module Nordlet
|
|
|
46
47
|
end
|
|
47
48
|
end
|
|
48
49
|
|
|
49
|
-
# Change the plan of the user's flat-rate billing account; answers
|
|
50
|
-
#
|
|
50
|
+
# Change the plan of the user's flat-rate billing account of the request's site; answers 422 when the plan is not
|
|
51
|
+
# one of that site's plans and 409 when the account type is not `flat_rate`. With a Stripe subscription and
|
|
52
|
+
# payments configured, the subscription is moved to the new plan.
|
|
51
53
|
#
|
|
52
54
|
# @param request_options [Hash]
|
|
53
55
|
# @param params [Nordlet::Billing::Types::AccountSetPlanBillingRequest]
|
|
@@ -81,10 +83,11 @@ module Nordlet
|
|
|
81
83
|
end
|
|
82
84
|
end
|
|
83
85
|
|
|
84
|
-
# Switch the user's billing account between `flat_rate` and `per_request
|
|
85
|
-
#
|
|
86
|
-
#
|
|
87
|
-
#
|
|
86
|
+
# Switch the user's billing account of the request's site between `flat_rate` and `per_request`; answers 422 for
|
|
87
|
+
# an account type the site does not offer (the `invoice` site has `flat_rate` only). With a Stripe subscription
|
|
88
|
+
# and payments configured, the subscription is moved to the plan's price for `flat_rate`; for `per_request` the
|
|
89
|
+
# plan is taken off the subscription, and a subscription that carried only the plan is cancelled, leaving the
|
|
90
|
+
# account without one. When Stripe refuses the change, the previous account type is restored.
|
|
88
91
|
#
|
|
89
92
|
# @param request_options [Hash]
|
|
90
93
|
# @param params [Nordlet::Billing::Types::AccountSetAccountTypeBillingRequest]
|
|
@@ -118,9 +121,10 @@ module Nordlet
|
|
|
118
121
|
end
|
|
119
122
|
end
|
|
120
123
|
|
|
121
|
-
# Switch automatic top-ups on or off and set their amount
|
|
122
|
-
# first card top-up creates (400 otherwise); when switched on, a top-up is
|
|
123
|
-
# below zero, no payment has failed and no top-up was requested in the
|
|
124
|
+
# Switch automatic top-ups on or off and set their amount; answers 409 on a site without top-ups. Switching them
|
|
125
|
+
# on needs a Stripe customer, which the first card top-up creates (400 otherwise); when switched on, a top-up is
|
|
126
|
+
# charged at once if the balance is at or below zero, no payment has failed and no top-up was requested in the
|
|
127
|
+
# last 24 hours.
|
|
124
128
|
#
|
|
125
129
|
# @param request_options [Hash]
|
|
126
130
|
# @param params [Nordlet::Billing::Types::AccountSetAutoTopUpBillingRequest]
|
|
@@ -156,6 +160,7 @@ module Nordlet
|
|
|
156
160
|
|
|
157
161
|
# Set the overdraft cap of the user's billing account: how far usage charges may take the balance below zero
|
|
158
162
|
# before the account is suspended. A suspended account whose balance is within the new cap is activated again.
|
|
163
|
+
# Answers 409 on a site without top-ups.
|
|
159
164
|
#
|
|
160
165
|
# @param request_options [Hash]
|
|
161
166
|
# @param params [Nordlet::Billing::Types::AccountSetOverdraftCapBillingRequest]
|
|
@@ -191,7 +196,8 @@ module Nordlet
|
|
|
191
196
|
|
|
192
197
|
# Open a Stripe Checkout session for a one-time credit top-up of `amountCents` and return its URL; a Stripe
|
|
193
198
|
# customer is created for the user when there is none. `returnTo` chooses whether Checkout returns to the credits
|
|
194
|
-
# page or to the onboarding plan page, in `locale`. Answers
|
|
199
|
+
# page or to the onboarding plan page, in `locale`. Answers 409 on a site without top-ups and 503 when online
|
|
200
|
+
# payments are not configured.
|
|
195
201
|
#
|
|
196
202
|
# @param request_options [Hash]
|
|
197
203
|
# @param params [Nordlet::Billing::Types::TopupCreateBillingRequest]
|
|
@@ -227,7 +233,7 @@ module Nordlet
|
|
|
227
233
|
|
|
228
234
|
# Confirm a paid top-up Checkout session by `sessionId` and credit the account at once instead of waiting for the
|
|
229
235
|
# Stripe webhook; a session is credited only once. Answers 404 when the session is not the user's own or is not
|
|
230
|
-
# paid.
|
|
236
|
+
# paid, and 409 on a site without top-ups.
|
|
231
237
|
#
|
|
232
238
|
# @param request_options [Hash]
|
|
233
239
|
# @param params [Nordlet::Billing::Types::TopupConfirmBillingRequest]
|
|
@@ -261,11 +267,13 @@ module Nordlet
|
|
|
261
267
|
end
|
|
262
268
|
end
|
|
263
269
|
|
|
264
|
-
# Open a Stripe Checkout session for a flat-rate subscription on `plan
|
|
265
|
-
#
|
|
266
|
-
#
|
|
267
|
-
# invoice
|
|
268
|
-
#
|
|
270
|
+
# Open a Stripe Checkout session for a flat-rate subscription on `plan` (by default the first plan of the
|
|
271
|
+
# request's site) for the billing account of the request's site, with the trial period of `trialDays` days, and
|
|
272
|
+
# return its URL; a Stripe customer is created for that account when it has none. The `invoicing` plan of the
|
|
273
|
+
# `invoice` site takes its trial days from the server setting `INVOICE_PLAN_TRIAL_DAYS` and returns to the invoice
|
|
274
|
+
# app. Answers 422 when the plan is not one of the site's plans, 409 when the site's flat-rate subscription is
|
|
275
|
+
# already active and 503 when online payments are not configured, the plan has no price, or the Invoicing trial is
|
|
276
|
+
# not set.
|
|
269
277
|
#
|
|
270
278
|
# @param request_options [Hash]
|
|
271
279
|
# @param params [Nordlet::Billing::Types::FlatRateCreateBillingRequest]
|
|
@@ -299,9 +307,9 @@ module Nordlet
|
|
|
299
307
|
end
|
|
300
308
|
end
|
|
301
309
|
|
|
302
|
-
# Confirm a completed flat-rate Checkout session by `sessionId`: the account
|
|
303
|
-
# plan with status `active` and the subscription attached, unless the Stripe
|
|
304
|
-
# when the session is not the user's own or not completed.
|
|
310
|
+
# Confirm a completed flat-rate Checkout session by `sessionId`: the billing account of the site of the session's
|
|
311
|
+
# plan becomes `flat_rate` on that plan with status `active` and the subscription attached, unless the Stripe
|
|
312
|
+
# webhook already did this. Answers 404 when the session is not the user's own or not completed.
|
|
305
313
|
#
|
|
306
314
|
# @param request_options [Hash]
|
|
307
315
|
# @param params [Nordlet::Billing::Types::FlatRateConfirmBillingRequest]
|
|
@@ -335,9 +343,10 @@ module Nordlet
|
|
|
335
343
|
end
|
|
336
344
|
end
|
|
337
345
|
|
|
338
|
-
# Cancel the
|
|
339
|
-
# `subscriptionCancelAt`, and Stripe then ends the subscription, which
|
|
340
|
-
# records. Answers 503 when online payments are not configured and 409
|
|
346
|
+
# Cancel the Stripe subscription of the user's billing account of the request's site at the end of the period
|
|
347
|
+
# already paid: the plan stays active until `subscriptionCancelAt`, and Stripe then ends the subscription, which
|
|
348
|
+
# its `customer.subscription.deleted` webhook records. Answers 503 when online payments are not configured and 409
|
|
349
|
+
# when the account has no subscription.
|
|
341
350
|
#
|
|
342
351
|
# @param request_options [Hash]
|
|
343
352
|
# @param params [Nordlet::Billing::Types::SubscriptionCancelBillingRequest]
|
|
@@ -371,8 +380,9 @@ module Nordlet
|
|
|
371
380
|
end
|
|
372
381
|
end
|
|
373
382
|
|
|
374
|
-
# Open a Stripe customer portal session
|
|
375
|
-
#
|
|
383
|
+
# Open a Stripe customer portal session for the billing account of the request's site that returns to that site's
|
|
384
|
+
# credits page (the plan page on the `invoice` site) in `locale`, and return its URL. Answers 503 when online
|
|
385
|
+
# payments are not configured and 400 when the account has no Stripe customer yet.
|
|
376
386
|
#
|
|
377
387
|
# @param request_options [Hash]
|
|
378
388
|
# @param params [Nordlet::Billing::Types::PortalCreateBillingRequest]
|
|
@@ -406,8 +416,8 @@ module Nordlet
|
|
|
406
416
|
end
|
|
407
417
|
end
|
|
408
418
|
|
|
409
|
-
# List the newest credit transactions of the user's billing account, up to `limit`: trial
|
|
410
|
-
# charges, activations and adjustments, each with the balance after it.
|
|
419
|
+
# List the newest credit transactions of the user's billing account of the request's site, up to `limit`: trial
|
|
420
|
+
# grants, top-ups, usage charges, activations and adjustments, each with the balance after it.
|
|
411
421
|
#
|
|
412
422
|
# @param request_options [Hash]
|
|
413
423
|
# @param params [Nordlet::Billing::Types::TransactionsListBillingRequest]
|
|
@@ -441,8 +451,9 @@ module Nordlet
|
|
|
441
451
|
end
|
|
442
452
|
end
|
|
443
453
|
|
|
444
|
-
# List the daily usage records of the companies the user pays for, from `from` to `to`: one
|
|
445
|
-
# and metric (API requests, OCR pages, file storage bytes, database bytes, sale invoices).
|
|
454
|
+
# List the daily usage records of the request's site in the companies the user pays for, from `from` to `to`: one
|
|
455
|
+
# row per company, date and metric (API requests, OCR pages, file storage bytes, database bytes, sale invoices).
|
|
456
|
+
# Requests, OCR pages and invoices count on the site the request came from; storage counts on the `app` site.
|
|
446
457
|
#
|
|
447
458
|
# @param request_options [Hash]
|
|
448
459
|
# @param params [Nordlet::Billing::Types::UsageListBillingRequest]
|
|
@@ -4,6 +4,8 @@ module Nordlet
|
|
|
4
4
|
module Billing
|
|
5
5
|
module Types
|
|
6
6
|
class AccountGetBillingResponse < Internal::Types::Model
|
|
7
|
+
field :site, -> { Nordlet::Billing::Types::AccountGetBillingResponseSite }, optional: false, nullable: false
|
|
8
|
+
|
|
7
9
|
field :plan, -> { Nordlet::Billing::Types::AccountGetBillingResponsePlan }, optional: false, nullable: false
|
|
8
10
|
|
|
9
11
|
field :account_type, -> { Nordlet::Billing::Types::AccountGetBillingResponseAccountType }, optional: false, nullable: false, api_name: "accountType"
|
|
@@ -4,6 +4,8 @@ module Nordlet
|
|
|
4
4
|
module Billing
|
|
5
5
|
module Types
|
|
6
6
|
class AccountSetAccountTypeBillingResponse < Internal::Types::Model
|
|
7
|
+
field :site, -> { Nordlet::Billing::Types::AccountSetAccountTypeBillingResponseSite }, optional: false, nullable: false
|
|
8
|
+
|
|
7
9
|
field :plan, -> { Nordlet::Billing::Types::AccountSetAccountTypeBillingResponsePlan }, optional: false, nullable: false
|
|
8
10
|
|
|
9
11
|
field :account_type, -> { Nordlet::Billing::Types::AccountSetAccountTypeBillingResponseAccountType }, optional: false, nullable: false, api_name: "accountType"
|
|
@@ -4,6 +4,8 @@ module Nordlet
|
|
|
4
4
|
module Billing
|
|
5
5
|
module Types
|
|
6
6
|
class AccountSetAutoTopUpBillingResponse < Internal::Types::Model
|
|
7
|
+
field :site, -> { Nordlet::Billing::Types::AccountSetAutoTopUpBillingResponseSite }, optional: false, nullable: false
|
|
8
|
+
|
|
7
9
|
field :plan, -> { Nordlet::Billing::Types::AccountSetAutoTopUpBillingResponsePlan }, optional: false, nullable: false
|
|
8
10
|
|
|
9
11
|
field :account_type, -> { Nordlet::Billing::Types::AccountSetAutoTopUpBillingResponseAccountType }, optional: false, nullable: false, api_name: "accountType"
|
|
@@ -4,6 +4,8 @@ module Nordlet
|
|
|
4
4
|
module Billing
|
|
5
5
|
module Types
|
|
6
6
|
class AccountSetOverdraftCapBillingResponse < Internal::Types::Model
|
|
7
|
+
field :site, -> { Nordlet::Billing::Types::AccountSetOverdraftCapBillingResponseSite }, optional: false, nullable: false
|
|
8
|
+
|
|
7
9
|
field :plan, -> { Nordlet::Billing::Types::AccountSetOverdraftCapBillingResponsePlan }, optional: false, nullable: false
|
|
8
10
|
|
|
9
11
|
field :account_type, -> { Nordlet::Billing::Types::AccountSetOverdraftCapBillingResponseAccountType }, optional: false, nullable: false, api_name: "accountType"
|
|
@@ -4,6 +4,8 @@ module Nordlet
|
|
|
4
4
|
module Billing
|
|
5
5
|
module Types
|
|
6
6
|
class AccountSetPlanBillingResponse < Internal::Types::Model
|
|
7
|
+
field :site, -> { Nordlet::Billing::Types::AccountSetPlanBillingResponseSite }, optional: false, nullable: false
|
|
8
|
+
|
|
7
9
|
field :plan, -> { Nordlet::Billing::Types::AccountSetPlanBillingResponsePlan }, optional: false, nullable: false
|
|
8
10
|
|
|
9
11
|
field :account_type, -> { Nordlet::Billing::Types::AccountSetPlanBillingResponseAccountType }, optional: false, nullable: false, api_name: "accountType"
|
|
@@ -4,6 +4,8 @@ module Nordlet
|
|
|
4
4
|
module Billing
|
|
5
5
|
module Types
|
|
6
6
|
class FlatRateConfirmBillingResponse < Internal::Types::Model
|
|
7
|
+
field :site, -> { Nordlet::Billing::Types::FlatRateConfirmBillingResponseSite }, optional: false, nullable: false
|
|
8
|
+
|
|
7
9
|
field :plan, -> { Nordlet::Billing::Types::FlatRateConfirmBillingResponsePlan }, optional: false, nullable: false
|
|
8
10
|
|
|
9
11
|
field :account_type, -> { Nordlet::Billing::Types::FlatRateConfirmBillingResponseAccountType }, optional: false, nullable: false, api_name: "accountType"
|
|
@@ -9,6 +9,36 @@ module Nordlet
|
|
|
9
9
|
EN = "en"
|
|
10
10
|
LT = "lt"
|
|
11
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
|
+
UK = "uk"
|
|
12
42
|
end
|
|
13
43
|
end
|
|
14
44
|
end
|
|
@@ -9,6 +9,36 @@ module Nordlet
|
|
|
9
9
|
EN = "en"
|
|
10
10
|
LT = "lt"
|
|
11
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
|
+
UK = "uk"
|
|
12
42
|
end
|
|
13
43
|
end
|
|
14
44
|
end
|
|
@@ -4,6 +4,8 @@ module Nordlet
|
|
|
4
4
|
module Billing
|
|
5
5
|
module Types
|
|
6
6
|
class SubscriptionCancelBillingResponse < Internal::Types::Model
|
|
7
|
+
field :site, -> { Nordlet::Billing::Types::SubscriptionCancelBillingResponseSite }, optional: false, nullable: false
|
|
8
|
+
|
|
7
9
|
field :plan, -> { Nordlet::Billing::Types::SubscriptionCancelBillingResponsePlan }, optional: false, nullable: false
|
|
8
10
|
|
|
9
11
|
field :account_type, -> { Nordlet::Billing::Types::SubscriptionCancelBillingResponseAccountType }, optional: false, nullable: false, api_name: "accountType"
|
|
@@ -4,6 +4,8 @@ module Nordlet
|
|
|
4
4
|
module Billing
|
|
5
5
|
module Types
|
|
6
6
|
class TopupConfirmBillingResponse < Internal::Types::Model
|
|
7
|
+
field :site, -> { Nordlet::Billing::Types::TopupConfirmBillingResponseSite }, optional: false, nullable: false
|
|
8
|
+
|
|
7
9
|
field :plan, -> { Nordlet::Billing::Types::TopupConfirmBillingResponsePlan }, optional: false, nullable: false
|
|
8
10
|
|
|
9
11
|
field :account_type, -> { Nordlet::Billing::Types::TopupConfirmBillingResponseAccountType }, optional: false, nullable: false, api_name: "accountType"
|
|
@@ -9,6 +9,36 @@ module Nordlet
|
|
|
9
9
|
EN = "en"
|
|
10
10
|
LT = "lt"
|
|
11
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
|
+
UK = "uk"
|
|
12
42
|
end
|
|
13
43
|
end
|
|
14
44
|
end
|
|
@@ -6,6 +6,8 @@ module Nordlet
|
|
|
6
6
|
class UsageListBillingResponseRowsItem < Internal::Types::Model
|
|
7
7
|
field :company_id, -> { String }, optional: false, nullable: false, api_name: "companyId"
|
|
8
8
|
|
|
9
|
+
field :site, -> { Nordlet::Billing::Types::UsageListBillingResponseRowsItemSite }, optional: false, nullable: false
|
|
10
|
+
|
|
9
11
|
field :date, -> { String }, optional: false, nullable: false
|
|
10
12
|
|
|
11
13
|
field :metric, -> { Nordlet::Billing::Types::UsageListBillingResponseRowsItemMetric }, optional: false, nullable: false
|