nordlet 0.5.5 → 0.5.7
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 +5 -4
- 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/login_link_request_account_request.rb +2 -0
- data/lib/nordlet/account/types/login_link_request_account_request_app.rb +13 -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 +121 -7
- 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/debt_reminders_list_partners_response_rows_item.rb +2 -0
- data/lib/nordlet/partners/types/debt_reminders_list_partners_response_rows_item_kind.rb +14 -0
- data/lib/nordlet/partners/types/debt_reminders_settings_get_partners_request.rb +9 -0
- data/lib/nordlet/partners/types/debt_reminders_settings_get_partners_response.rb +13 -0
- data/lib/nordlet/partners/types/debt_reminders_settings_update_partners_request.rb +13 -0
- data/lib/nordlet/partners/types/debt_reminders_settings_update_partners_response.rb +13 -0
- data/lib/nordlet/partners/types/debt_reminders_upcoming_partners_request.rb +9 -0
- data/lib/nordlet/partners/types/debt_reminders_upcoming_partners_response.rb +11 -0
- data/lib/nordlet/partners/types/debt_reminders_upcoming_partners_response_rows_item.rb +27 -0
- data/lib/nordlet/partners/types/debt_reminders_upcoming_partners_response_rows_item_kind.rb +14 -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 +71 -0
- data/reference.md +2012 -895
- metadata +73 -2
|
@@ -457,12 +457,13 @@ module Nordlet
|
|
|
457
457
|
end
|
|
458
458
|
end
|
|
459
459
|
|
|
460
|
-
# Runs the selection of the daily debt-reminder job for this company as of the company's current date and
|
|
461
|
-
#
|
|
462
|
-
# is active, has an e-mail address, got no reminder in the last
|
|
463
|
-
#
|
|
464
|
-
# `
|
|
465
|
-
#
|
|
460
|
+
# Runs the overdue selection of the daily debt-reminder job for this company as of the company's current date and
|
|
461
|
+
# returns the overdue reminders it would send, without sending or recording anything. A partner is included when
|
|
462
|
+
# it has `autoDebtReminder`, is active, has an e-mail address, got no overdue reminder in the last `repeatDays`
|
|
463
|
+
# days (`partners/debt-reminders/settings/get`) and has issued invoices or advance invoices with
|
|
464
|
+
# `debtRemindersEnabled` past their due date with an unpaid remainder; the interest per invoice is the remainder
|
|
465
|
+
# times the partner's `lateInterestPercent` times the days late over 365, and the totals are per currency. Sent
|
|
466
|
+
# reminders are listed by `partners/debt-reminders/list`.
|
|
466
467
|
#
|
|
467
468
|
# @param request_options [Hash]
|
|
468
469
|
# @param params [Nordlet::Partners::Types::DebtRemindersPreviewPartnersRequest]
|
|
@@ -497,7 +498,7 @@ module Nordlet
|
|
|
497
498
|
end
|
|
498
499
|
|
|
499
500
|
# Lists the debt reminders the daily job has sent, one row per partner and currency with the ids of the invoices
|
|
500
|
-
# it covered; filterable by `partnerId`, sortable by `sentAt`.
|
|
501
|
+
# it covered and its `kind` (`before_due` or `overdue`); filterable by `partnerId`, sortable by `sentAt`.
|
|
501
502
|
#
|
|
502
503
|
# @param request_options [Hash]
|
|
503
504
|
# @param params [Nordlet::Partners::Types::DebtRemindersListPartnersRequest]
|
|
@@ -531,6 +532,119 @@ module Nordlet
|
|
|
531
532
|
end
|
|
532
533
|
end
|
|
533
534
|
|
|
535
|
+
# Returns the debt-reminder schedule of the company: `daysBefore`, the days before the due date on which the first
|
|
536
|
+
# reminder is sent (null when no reminder is sent before the due date), and `repeatDays`, the days between overdue
|
|
537
|
+
# reminders to a partner.
|
|
538
|
+
#
|
|
539
|
+
# @param request_options [Hash]
|
|
540
|
+
# @param params [Nordlet::Partners::Types::DebtRemindersSettingsGetPartnersRequest]
|
|
541
|
+
# @option request_options [String] :base_url
|
|
542
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
543
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
544
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
545
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
546
|
+
#
|
|
547
|
+
# @return [Nordlet::Partners::Types::DebtRemindersSettingsGetPartnersResponse]
|
|
548
|
+
def debt_reminders_settings_get(request_options: {}, **params)
|
|
549
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
550
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
551
|
+
base_url: request_options[:base_url],
|
|
552
|
+
method: "POST",
|
|
553
|
+
path: "v1/partners/debt-reminders/settings/get",
|
|
554
|
+
body: Nordlet::Partners::Types::DebtRemindersSettingsGetPartnersRequest.new(params).to_h,
|
|
555
|
+
request_options: request_options
|
|
556
|
+
)
|
|
557
|
+
begin
|
|
558
|
+
response = @client.send(request)
|
|
559
|
+
rescue Net::HTTPRequestTimeout
|
|
560
|
+
raise Nordlet::Errors::TimeoutError
|
|
561
|
+
end
|
|
562
|
+
code = response.code.to_i
|
|
563
|
+
if code.between?(200, 299)
|
|
564
|
+
Nordlet::Partners::Types::DebtRemindersSettingsGetPartnersResponse.load(response.body)
|
|
565
|
+
else
|
|
566
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
567
|
+
raise error_class.new(response.body, code: code)
|
|
568
|
+
end
|
|
569
|
+
end
|
|
570
|
+
|
|
571
|
+
# Changes the given fields of the company's debt-reminder schedule. `daysBefore` (1 to 90, or null to send nothing
|
|
572
|
+
# before the due date) makes the daily job send one "payment due soon" reminder per invoice that many days before
|
|
573
|
+
# its due date; `repeatDays` (1 to 90) is the number of days between overdue reminders to a partner. Only partners
|
|
574
|
+
# with `autoDebtReminder` get reminders, and only for invoices with `debtRemindersEnabled`. A body without fields
|
|
575
|
+
# is refused with 400.
|
|
576
|
+
#
|
|
577
|
+
# @param request_options [Hash]
|
|
578
|
+
# @param params [Nordlet::Partners::Types::DebtRemindersSettingsUpdatePartnersRequest]
|
|
579
|
+
# @option request_options [String] :base_url
|
|
580
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
581
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
582
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
583
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
584
|
+
#
|
|
585
|
+
# @return [Nordlet::Partners::Types::DebtRemindersSettingsUpdatePartnersResponse]
|
|
586
|
+
def debt_reminders_settings_update(request_options: {}, **params)
|
|
587
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
588
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
589
|
+
base_url: request_options[:base_url],
|
|
590
|
+
method: "POST",
|
|
591
|
+
path: "v1/partners/debt-reminders/settings/update",
|
|
592
|
+
body: Nordlet::Partners::Types::DebtRemindersSettingsUpdatePartnersRequest.new(params).to_h,
|
|
593
|
+
request_options: request_options
|
|
594
|
+
)
|
|
595
|
+
begin
|
|
596
|
+
response = @client.send(request)
|
|
597
|
+
rescue Net::HTTPRequestTimeout
|
|
598
|
+
raise Nordlet::Errors::TimeoutError
|
|
599
|
+
end
|
|
600
|
+
code = response.code.to_i
|
|
601
|
+
if code.between?(200, 299)
|
|
602
|
+
Nordlet::Partners::Types::DebtRemindersSettingsUpdatePartnersResponse.load(response.body)
|
|
603
|
+
else
|
|
604
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
605
|
+
raise error_class.new(response.body, code: code)
|
|
606
|
+
end
|
|
607
|
+
end
|
|
608
|
+
|
|
609
|
+
# Returns the next reminder the daily debt-reminder job would send for each unpaid issued invoice or advance
|
|
610
|
+
# invoice with `debtRemindersEnabled` of the partners that get reminders (`autoDebtReminder`, active, with an
|
|
611
|
+
# e-mail address), as of the company's current date and sorted by `date`. A `before_due` reminder is sent once per
|
|
612
|
+
# invoice, `daysBefore` days before its due date or on the first daily run after that while the due date is still
|
|
613
|
+
# ahead; `overdue` reminders start the day after the due date and repeat every `repeatDays` days per partner,
|
|
614
|
+
# counting only overdue reminders. Nothing is sent or recorded.
|
|
615
|
+
#
|
|
616
|
+
# @param request_options [Hash]
|
|
617
|
+
# @param params [Nordlet::Partners::Types::DebtRemindersUpcomingPartnersRequest]
|
|
618
|
+
# @option request_options [String] :base_url
|
|
619
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
620
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
621
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
622
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
623
|
+
#
|
|
624
|
+
# @return [Nordlet::Partners::Types::DebtRemindersUpcomingPartnersResponse]
|
|
625
|
+
def debt_reminders_upcoming(request_options: {}, **params)
|
|
626
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
627
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
628
|
+
base_url: request_options[:base_url],
|
|
629
|
+
method: "POST",
|
|
630
|
+
path: "v1/partners/debt-reminders/upcoming",
|
|
631
|
+
body: Nordlet::Partners::Types::DebtRemindersUpcomingPartnersRequest.new(params).to_h,
|
|
632
|
+
request_options: request_options
|
|
633
|
+
)
|
|
634
|
+
begin
|
|
635
|
+
response = @client.send(request)
|
|
636
|
+
rescue Net::HTTPRequestTimeout
|
|
637
|
+
raise Nordlet::Errors::TimeoutError
|
|
638
|
+
end
|
|
639
|
+
code = response.code.to_i
|
|
640
|
+
if code.between?(200, 299)
|
|
641
|
+
Nordlet::Partners::Types::DebtRemindersUpcomingPartnersResponse.load(response.body)
|
|
642
|
+
else
|
|
643
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
644
|
+
raise error_class.new(response.body, code: code)
|
|
645
|
+
end
|
|
646
|
+
end
|
|
647
|
+
|
|
534
648
|
# Checks a VAT number against VIES, either a free `vatCode` or the VAT code of the partner in `partnerId` (exactly
|
|
535
649
|
# one of the two); a code without an EU country prefix and 2 to 12 alphanumeric characters is refused with 422, as
|
|
536
650
|
# is a partner without a VAT code, and a VIES outage answers 503. With a partner the outcome is written to it
|
|
@@ -28,6 +28,10 @@ module Nordlet
|
|
|
28
28
|
|
|
29
29
|
field :payment_term_days, -> { Integer }, optional: true, nullable: false, api_name: "paymentTermDays"
|
|
30
30
|
|
|
31
|
+
field :invoice_currency, -> { Nordlet::Partners::Types::CreatePartnersRequestInvoiceCurrency }, optional: true, nullable: false, api_name: "invoiceCurrency"
|
|
32
|
+
|
|
33
|
+
field :invoice_locale, -> { Nordlet::Partners::Types::CreatePartnersRequestInvoiceLocale }, optional: true, nullable: false, api_name: "invoiceLocale"
|
|
34
|
+
|
|
31
35
|
field :credit_limit, -> { String }, optional: true, nullable: false, api_name: "creditLimit"
|
|
32
36
|
|
|
33
37
|
field :price_list_id, -> { String }, optional: true, nullable: false, api_name: "priceListId"
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Partners
|
|
5
|
+
module Types
|
|
6
|
+
module CreatePartnersRequestInvoiceCurrency
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
EUR = "EUR"
|
|
10
|
+
USD = "USD"
|
|
11
|
+
GBP = "GBP"
|
|
12
|
+
PLN = "PLN"
|
|
13
|
+
SEK = "SEK"
|
|
14
|
+
NOK = "NOK"
|
|
15
|
+
DKK = "DKK"
|
|
16
|
+
CHF = "CHF"
|
|
17
|
+
CZK = "CZK"
|
|
18
|
+
HUF = "HUF"
|
|
19
|
+
RON = "RON"
|
|
20
|
+
AED = "AED"
|
|
21
|
+
AFN = "AFN"
|
|
22
|
+
ALL = "ALL"
|
|
23
|
+
AMD = "AMD"
|
|
24
|
+
ARS = "ARS"
|
|
25
|
+
AUD = "AUD"
|
|
26
|
+
AZN = "AZN"
|
|
27
|
+
BAM = "BAM"
|
|
28
|
+
BDT = "BDT"
|
|
29
|
+
BHD = "BHD"
|
|
30
|
+
BOB = "BOB"
|
|
31
|
+
BRL = "BRL"
|
|
32
|
+
BYN = "BYN"
|
|
33
|
+
CAD = "CAD"
|
|
34
|
+
CLP = "CLP"
|
|
35
|
+
CNY = "CNY"
|
|
36
|
+
COP = "COP"
|
|
37
|
+
DJF = "DJF"
|
|
38
|
+
DZD = "DZD"
|
|
39
|
+
EGP = "EGP"
|
|
40
|
+
ETB = "ETB"
|
|
41
|
+
GEL = "GEL"
|
|
42
|
+
GNF = "GNF"
|
|
43
|
+
HKD = "HKD"
|
|
44
|
+
IDR = "IDR"
|
|
45
|
+
ILS = "ILS"
|
|
46
|
+
INR = "INR"
|
|
47
|
+
IQD = "IQD"
|
|
48
|
+
IRR = "IRR"
|
|
49
|
+
ISK = "ISK"
|
|
50
|
+
JOD = "JOD"
|
|
51
|
+
JPY = "JPY"
|
|
52
|
+
KES = "KES"
|
|
53
|
+
KGS = "KGS"
|
|
54
|
+
KRW = "KRW"
|
|
55
|
+
KWD = "KWD"
|
|
56
|
+
KZT = "KZT"
|
|
57
|
+
LBP = "LBP"
|
|
58
|
+
LKR = "LKR"
|
|
59
|
+
LYD = "LYD"
|
|
60
|
+
MAD = "MAD"
|
|
61
|
+
MDL = "MDL"
|
|
62
|
+
MGA = "MGA"
|
|
63
|
+
MKD = "MKD"
|
|
64
|
+
MNT = "MNT"
|
|
65
|
+
MXN = "MXN"
|
|
66
|
+
MYR = "MYR"
|
|
67
|
+
MZN = "MZN"
|
|
68
|
+
NZD = "NZD"
|
|
69
|
+
PAB = "PAB"
|
|
70
|
+
PEN = "PEN"
|
|
71
|
+
PHP = "PHP"
|
|
72
|
+
PKR = "PKR"
|
|
73
|
+
QAR = "QAR"
|
|
74
|
+
RSD = "RSD"
|
|
75
|
+
SAR = "SAR"
|
|
76
|
+
SGD = "SGD"
|
|
77
|
+
SYP = "SYP"
|
|
78
|
+
THB = "THB"
|
|
79
|
+
TJS = "TJS"
|
|
80
|
+
TMT = "TMT"
|
|
81
|
+
TND = "TND"
|
|
82
|
+
TRY = "TRY"
|
|
83
|
+
TWD = "TWD"
|
|
84
|
+
TZS = "TZS"
|
|
85
|
+
UAH = "UAH"
|
|
86
|
+
UYU = "UYU"
|
|
87
|
+
UZS = "UZS"
|
|
88
|
+
VES = "VES"
|
|
89
|
+
VND = "VND"
|
|
90
|
+
XAF = "XAF"
|
|
91
|
+
XOF = "XOF"
|
|
92
|
+
YER = "YER"
|
|
93
|
+
ZAR = "ZAR"
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Partners
|
|
5
|
+
module Types
|
|
6
|
+
module CreatePartnersRequestInvoiceLocale
|
|
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
|
|
@@ -30,6 +30,10 @@ module Nordlet
|
|
|
30
30
|
|
|
31
31
|
field :payment_term_days, -> { Integer }, optional: false, nullable: true, api_name: "paymentTermDays"
|
|
32
32
|
|
|
33
|
+
field :invoice_currency, -> { String }, optional: false, nullable: true, api_name: "invoiceCurrency"
|
|
34
|
+
|
|
35
|
+
field :invoice_locale, -> { String }, optional: false, nullable: true, api_name: "invoiceLocale"
|
|
36
|
+
|
|
33
37
|
field :credit_limit, -> { String }, optional: false, nullable: true, api_name: "creditLimit"
|
|
34
38
|
|
|
35
39
|
field :price_list_id, -> { String }, optional: false, nullable: true, api_name: "priceListId"
|
|
@@ -8,6 +8,8 @@ module Nordlet
|
|
|
8
8
|
|
|
9
9
|
field :partner_id, -> { String }, optional: false, nullable: false, api_name: "partnerId"
|
|
10
10
|
|
|
11
|
+
field :kind, -> { Nordlet::Partners::Types::DebtRemindersListPartnersResponseRowsItemKind }, optional: false, nullable: false
|
|
12
|
+
|
|
11
13
|
field :sent_to, -> { String }, optional: false, nullable: false, api_name: "sentTo"
|
|
12
14
|
|
|
13
15
|
field :invoice_count, -> { Integer }, optional: false, nullable: false, api_name: "invoiceCount"
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Partners
|
|
5
|
+
module Types
|
|
6
|
+
module DebtRemindersListPartnersResponseRowsItemKind
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
BEFORE_DUE = "before_due"
|
|
10
|
+
OVERDUE = "overdue"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Partners
|
|
5
|
+
module Types
|
|
6
|
+
class DebtRemindersSettingsGetPartnersResponse < Internal::Types::Model
|
|
7
|
+
field :days_before, -> { Integer }, optional: false, nullable: true, api_name: "daysBefore"
|
|
8
|
+
|
|
9
|
+
field :repeat_days, -> { Integer }, optional: false, nullable: false, api_name: "repeatDays"
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Partners
|
|
5
|
+
module Types
|
|
6
|
+
class DebtRemindersSettingsUpdatePartnersRequest < Internal::Types::Model
|
|
7
|
+
field :days_before, -> { Integer }, optional: true, nullable: false, api_name: "daysBefore"
|
|
8
|
+
|
|
9
|
+
field :repeat_days, -> { Integer }, optional: true, nullable: false, api_name: "repeatDays"
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Partners
|
|
5
|
+
module Types
|
|
6
|
+
class DebtRemindersSettingsUpdatePartnersResponse < Internal::Types::Model
|
|
7
|
+
field :days_before, -> { Integer }, optional: false, nullable: true, api_name: "daysBefore"
|
|
8
|
+
|
|
9
|
+
field :repeat_days, -> { Integer }, optional: false, nullable: false, api_name: "repeatDays"
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Partners
|
|
5
|
+
module Types
|
|
6
|
+
class DebtRemindersUpcomingPartnersResponse < Internal::Types::Model
|
|
7
|
+
field :rows, -> { Internal::Types::Array[Nordlet::Partners::Types::DebtRemindersUpcomingPartnersResponseRowsItem] }, optional: false, nullable: false
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Partners
|
|
5
|
+
module Types
|
|
6
|
+
class DebtRemindersUpcomingPartnersResponseRowsItem < Internal::Types::Model
|
|
7
|
+
field :date, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :kind, -> { Nordlet::Partners::Types::DebtRemindersUpcomingPartnersResponseRowsItemKind }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :invoice_id, -> { String }, optional: false, nullable: false, api_name: "invoiceId"
|
|
12
|
+
|
|
13
|
+
field :full_number, -> { String }, optional: false, nullable: false, api_name: "fullNumber"
|
|
14
|
+
|
|
15
|
+
field :partner_id, -> { String }, optional: false, nullable: false, api_name: "partnerId"
|
|
16
|
+
|
|
17
|
+
field :partner_name, -> { String }, optional: false, nullable: false, api_name: "partnerName"
|
|
18
|
+
|
|
19
|
+
field :due_date, -> { String }, optional: false, nullable: false, api_name: "dueDate"
|
|
20
|
+
|
|
21
|
+
field :remaining, -> { String }, optional: false, nullable: false
|
|
22
|
+
|
|
23
|
+
field :currency, -> { String }, optional: false, nullable: false
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Partners
|
|
5
|
+
module Types
|
|
6
|
+
module DebtRemindersUpcomingPartnersResponseRowsItemKind
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
BEFORE_DUE = "before_due"
|
|
10
|
+
OVERDUE = "overdue"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -28,6 +28,10 @@ module Nordlet
|
|
|
28
28
|
|
|
29
29
|
field :payment_term_days, -> { Integer }, optional: true, nullable: false, api_name: "paymentTermDays"
|
|
30
30
|
|
|
31
|
+
field :invoice_currency, -> { Nordlet::Partners::Types::FindOrCreatePartnersRequestInvoiceCurrency }, optional: true, nullable: false, api_name: "invoiceCurrency"
|
|
32
|
+
|
|
33
|
+
field :invoice_locale, -> { Nordlet::Partners::Types::FindOrCreatePartnersRequestInvoiceLocale }, optional: true, nullable: false, api_name: "invoiceLocale"
|
|
34
|
+
|
|
31
35
|
field :credit_limit, -> { String }, optional: true, nullable: false, api_name: "creditLimit"
|
|
32
36
|
|
|
33
37
|
field :price_list_id, -> { String }, optional: true, nullable: false, api_name: "priceListId"
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Partners
|
|
5
|
+
module Types
|
|
6
|
+
module FindOrCreatePartnersRequestInvoiceCurrency
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
EUR = "EUR"
|
|
10
|
+
USD = "USD"
|
|
11
|
+
GBP = "GBP"
|
|
12
|
+
PLN = "PLN"
|
|
13
|
+
SEK = "SEK"
|
|
14
|
+
NOK = "NOK"
|
|
15
|
+
DKK = "DKK"
|
|
16
|
+
CHF = "CHF"
|
|
17
|
+
CZK = "CZK"
|
|
18
|
+
HUF = "HUF"
|
|
19
|
+
RON = "RON"
|
|
20
|
+
AED = "AED"
|
|
21
|
+
AFN = "AFN"
|
|
22
|
+
ALL = "ALL"
|
|
23
|
+
AMD = "AMD"
|
|
24
|
+
ARS = "ARS"
|
|
25
|
+
AUD = "AUD"
|
|
26
|
+
AZN = "AZN"
|
|
27
|
+
BAM = "BAM"
|
|
28
|
+
BDT = "BDT"
|
|
29
|
+
BHD = "BHD"
|
|
30
|
+
BOB = "BOB"
|
|
31
|
+
BRL = "BRL"
|
|
32
|
+
BYN = "BYN"
|
|
33
|
+
CAD = "CAD"
|
|
34
|
+
CLP = "CLP"
|
|
35
|
+
CNY = "CNY"
|
|
36
|
+
COP = "COP"
|
|
37
|
+
DJF = "DJF"
|
|
38
|
+
DZD = "DZD"
|
|
39
|
+
EGP = "EGP"
|
|
40
|
+
ETB = "ETB"
|
|
41
|
+
GEL = "GEL"
|
|
42
|
+
GNF = "GNF"
|
|
43
|
+
HKD = "HKD"
|
|
44
|
+
IDR = "IDR"
|
|
45
|
+
ILS = "ILS"
|
|
46
|
+
INR = "INR"
|
|
47
|
+
IQD = "IQD"
|
|
48
|
+
IRR = "IRR"
|
|
49
|
+
ISK = "ISK"
|
|
50
|
+
JOD = "JOD"
|
|
51
|
+
JPY = "JPY"
|
|
52
|
+
KES = "KES"
|
|
53
|
+
KGS = "KGS"
|
|
54
|
+
KRW = "KRW"
|
|
55
|
+
KWD = "KWD"
|
|
56
|
+
KZT = "KZT"
|
|
57
|
+
LBP = "LBP"
|
|
58
|
+
LKR = "LKR"
|
|
59
|
+
LYD = "LYD"
|
|
60
|
+
MAD = "MAD"
|
|
61
|
+
MDL = "MDL"
|
|
62
|
+
MGA = "MGA"
|
|
63
|
+
MKD = "MKD"
|
|
64
|
+
MNT = "MNT"
|
|
65
|
+
MXN = "MXN"
|
|
66
|
+
MYR = "MYR"
|
|
67
|
+
MZN = "MZN"
|
|
68
|
+
NZD = "NZD"
|
|
69
|
+
PAB = "PAB"
|
|
70
|
+
PEN = "PEN"
|
|
71
|
+
PHP = "PHP"
|
|
72
|
+
PKR = "PKR"
|
|
73
|
+
QAR = "QAR"
|
|
74
|
+
RSD = "RSD"
|
|
75
|
+
SAR = "SAR"
|
|
76
|
+
SGD = "SGD"
|
|
77
|
+
SYP = "SYP"
|
|
78
|
+
THB = "THB"
|
|
79
|
+
TJS = "TJS"
|
|
80
|
+
TMT = "TMT"
|
|
81
|
+
TND = "TND"
|
|
82
|
+
TRY = "TRY"
|
|
83
|
+
TWD = "TWD"
|
|
84
|
+
TZS = "TZS"
|
|
85
|
+
UAH = "UAH"
|
|
86
|
+
UYU = "UYU"
|
|
87
|
+
UZS = "UZS"
|
|
88
|
+
VES = "VES"
|
|
89
|
+
VND = "VND"
|
|
90
|
+
XAF = "XAF"
|
|
91
|
+
XOF = "XOF"
|
|
92
|
+
YER = "YER"
|
|
93
|
+
ZAR = "ZAR"
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Partners
|
|
5
|
+
module Types
|
|
6
|
+
module FindOrCreatePartnersRequestInvoiceLocale
|
|
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
|
|
@@ -30,6 +30,10 @@ module Nordlet
|
|
|
30
30
|
|
|
31
31
|
field :payment_term_days, -> { Integer }, optional: false, nullable: true, api_name: "paymentTermDays"
|
|
32
32
|
|
|
33
|
+
field :invoice_currency, -> { String }, optional: false, nullable: true, api_name: "invoiceCurrency"
|
|
34
|
+
|
|
35
|
+
field :invoice_locale, -> { String }, optional: false, nullable: true, api_name: "invoiceLocale"
|
|
36
|
+
|
|
33
37
|
field :credit_limit, -> { String }, optional: false, nullable: true, api_name: "creditLimit"
|
|
34
38
|
|
|
35
39
|
field :price_list_id, -> { String }, optional: false, nullable: true, api_name: "priceListId"
|
|
@@ -30,6 +30,10 @@ module Nordlet
|
|
|
30
30
|
|
|
31
31
|
field :payment_term_days, -> { Integer }, optional: false, nullable: true, api_name: "paymentTermDays"
|
|
32
32
|
|
|
33
|
+
field :invoice_currency, -> { String }, optional: false, nullable: true, api_name: "invoiceCurrency"
|
|
34
|
+
|
|
35
|
+
field :invoice_locale, -> { String }, optional: false, nullable: true, api_name: "invoiceLocale"
|
|
36
|
+
|
|
33
37
|
field :credit_limit, -> { String }, optional: false, nullable: true, api_name: "creditLimit"
|
|
34
38
|
|
|
35
39
|
field :price_list_id, -> { String }, optional: false, nullable: true, api_name: "priceListId"
|
|
@@ -30,6 +30,10 @@ module Nordlet
|
|
|
30
30
|
|
|
31
31
|
field :payment_term_days, -> { Integer }, optional: false, nullable: true, api_name: "paymentTermDays"
|
|
32
32
|
|
|
33
|
+
field :invoice_currency, -> { String }, optional: false, nullable: true, api_name: "invoiceCurrency"
|
|
34
|
+
|
|
35
|
+
field :invoice_locale, -> { String }, optional: false, nullable: true, api_name: "invoiceLocale"
|
|
36
|
+
|
|
33
37
|
field :credit_limit, -> { String }, optional: false, nullable: true, api_name: "creditLimit"
|
|
34
38
|
|
|
35
39
|
field :price_list_id, -> { String }, optional: false, nullable: true, api_name: "priceListId"
|
|
@@ -30,6 +30,10 @@ module Nordlet
|
|
|
30
30
|
|
|
31
31
|
field :payment_term_days, -> { Integer }, optional: true, nullable: false, api_name: "paymentTermDays"
|
|
32
32
|
|
|
33
|
+
field :invoice_currency, -> { Nordlet::Partners::Types::UpdatePartnersRequestInvoiceCurrency }, optional: true, nullable: false, api_name: "invoiceCurrency"
|
|
34
|
+
|
|
35
|
+
field :invoice_locale, -> { Nordlet::Partners::Types::UpdatePartnersRequestInvoiceLocale }, optional: true, nullable: false, api_name: "invoiceLocale"
|
|
36
|
+
|
|
33
37
|
field :credit_limit, -> { String }, optional: true, nullable: false, api_name: "creditLimit"
|
|
34
38
|
|
|
35
39
|
field :price_list_id, -> { String }, optional: true, nullable: false, api_name: "priceListId"
|