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
|
@@ -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"
|
|
@@ -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"
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Partners
|
|
5
|
+
module Types
|
|
6
|
+
module UpdatePartnersRequestInvoiceCurrency
|
|
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 UpdatePartnersRequestInvoiceLocale
|
|
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"
|
|
@@ -48,8 +48,8 @@ module Nordlet
|
|
|
48
48
|
# Redirect (302) to the company's payment page for the issued invoice that carries this payment token, rendered
|
|
49
49
|
# from the template set with `sales/invoices/payment-settings/update` with the invoice number, the amount still
|
|
50
50
|
# unpaid, the currency, the token, the invoice id and the customer name (see `sales/invoices/payment-link`).
|
|
51
|
-
# Answers 404 when the token matches no issued invoice
|
|
52
|
-
# already paid.
|
|
51
|
+
# Answers 404 when the token matches no issued invoice, the invoice has `payLinkEnabled` false or the company has
|
|
52
|
+
# no template, and 409 when the invoice is already paid.
|
|
53
53
|
#
|
|
54
54
|
# @param request_options [Hash]
|
|
55
55
|
# @param params [Hash]
|
|
@@ -80,6 +80,115 @@ module Nordlet
|
|
|
80
80
|
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
81
81
|
raise error_class.new(response.body, code: code)
|
|
82
82
|
end
|
|
83
|
+
|
|
84
|
+
# Return the issued sale document that carries this customer token (`token` of `sales/invoices/view`), in the
|
|
85
|
+
# shape of `sales/invoices/view` without the token. Answers 404 when the token matches no issued document.
|
|
86
|
+
#
|
|
87
|
+
# @param request_options [Hash]
|
|
88
|
+
# @param params [Nordlet::Public::Types::InvoicesGetPublicRequest]
|
|
89
|
+
# @option request_options [String] :base_url
|
|
90
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
91
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
92
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
93
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
94
|
+
#
|
|
95
|
+
# @return [Nordlet::Public::Types::InvoicesGetPublicResponse]
|
|
96
|
+
def invoices_get(request_options: {}, **params)
|
|
97
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
98
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
99
|
+
base_url: request_options[:base_url],
|
|
100
|
+
method: "POST",
|
|
101
|
+
path: "v1/public/invoices/get",
|
|
102
|
+
body: Nordlet::Public::Types::InvoicesGetPublicRequest.new(params).to_h,
|
|
103
|
+
request_options: request_options
|
|
104
|
+
)
|
|
105
|
+
begin
|
|
106
|
+
response = @client.send(request)
|
|
107
|
+
rescue Net::HTTPRequestTimeout
|
|
108
|
+
raise Nordlet::Errors::TimeoutError
|
|
109
|
+
end
|
|
110
|
+
code = response.code.to_i
|
|
111
|
+
if code.between?(200, 299)
|
|
112
|
+
Nordlet::Public::Types::InvoicesGetPublicResponse.load(response.body)
|
|
113
|
+
else
|
|
114
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
115
|
+
raise error_class.new(response.body, code: code)
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Open a Stripe Checkout page on the company's connected Stripe account for the amount still unpaid on the issued
|
|
120
|
+
# invoice that carries this customer token, and return its `url`. Stripe sends the customer back to the public
|
|
121
|
+
# invoice page. Answers 404 when the token matches no issued invoice, the invoice has `payLinkEnabled` false or
|
|
122
|
+
# the company has no Stripe account that can take charges, 409 when the invoice is already paid and 422 when
|
|
123
|
+
# Stripe cannot take the amount in the invoice currency.
|
|
124
|
+
#
|
|
125
|
+
# @param request_options [Hash]
|
|
126
|
+
# @param params [Nordlet::Public::Types::InvoicesCheckoutPublicRequest]
|
|
127
|
+
# @option request_options [String] :base_url
|
|
128
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
129
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
130
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
131
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
132
|
+
#
|
|
133
|
+
# @return [Nordlet::Public::Types::InvoicesCheckoutPublicResponse]
|
|
134
|
+
def invoices_checkout(request_options: {}, **params)
|
|
135
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
136
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
137
|
+
base_url: request_options[:base_url],
|
|
138
|
+
method: "POST",
|
|
139
|
+
path: "v1/public/invoices/checkout",
|
|
140
|
+
body: Nordlet::Public::Types::InvoicesCheckoutPublicRequest.new(params).to_h,
|
|
141
|
+
request_options: request_options
|
|
142
|
+
)
|
|
143
|
+
begin
|
|
144
|
+
response = @client.send(request)
|
|
145
|
+
rescue Net::HTTPRequestTimeout
|
|
146
|
+
raise Nordlet::Errors::TimeoutError
|
|
147
|
+
end
|
|
148
|
+
code = response.code.to_i
|
|
149
|
+
if code.between?(200, 299)
|
|
150
|
+
Nordlet::Public::Types::InvoicesCheckoutPublicResponse.load(response.body)
|
|
151
|
+
else
|
|
152
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
153
|
+
raise error_class.new(response.body, code: code)
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# Return the PDF of the issued sale document that carries this customer token, base64-encoded, as
|
|
158
|
+
# `sales/invoices/pdf` renders it in the document's own language, English when it has none. Answers 404 when the
|
|
159
|
+
# token matches no issued document.
|
|
160
|
+
#
|
|
161
|
+
# @param request_options [Hash]
|
|
162
|
+
# @param params [Nordlet::Public::Types::InvoicesPdfPublicRequest]
|
|
163
|
+
# @option request_options [String] :base_url
|
|
164
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
165
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
166
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
167
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
168
|
+
#
|
|
169
|
+
# @return [Nordlet::Public::Types::InvoicesPdfPublicResponse]
|
|
170
|
+
def invoices_pdf(request_options: {}, **params)
|
|
171
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
172
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
173
|
+
base_url: request_options[:base_url],
|
|
174
|
+
method: "POST",
|
|
175
|
+
path: "v1/public/invoices/pdf",
|
|
176
|
+
body: Nordlet::Public::Types::InvoicesPdfPublicRequest.new(params).to_h,
|
|
177
|
+
request_options: request_options
|
|
178
|
+
)
|
|
179
|
+
begin
|
|
180
|
+
response = @client.send(request)
|
|
181
|
+
rescue Net::HTTPRequestTimeout
|
|
182
|
+
raise Nordlet::Errors::TimeoutError
|
|
183
|
+
end
|
|
184
|
+
code = response.code.to_i
|
|
185
|
+
if code.between?(200, 299)
|
|
186
|
+
Nordlet::Public::Types::InvoicesPdfPublicResponse.load(response.body)
|
|
187
|
+
else
|
|
188
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
189
|
+
raise error_class.new(response.body, code: code)
|
|
190
|
+
end
|
|
191
|
+
end
|
|
83
192
|
end
|
|
84
193
|
end
|
|
85
194
|
end
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Public
|
|
5
|
+
module Types
|
|
6
|
+
class InvoicesGetPublicResponse < Internal::Types::Model
|
|
7
|
+
field :type, -> { Nordlet::Public::Types::InvoicesGetPublicResponseType }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :status, -> { Nordlet::Public::Types::InvoicesGetPublicResponseStatus }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :payment_status, -> { Nordlet::Public::Types::InvoicesGetPublicResponsePaymentStatus }, optional: false, nullable: false, api_name: "paymentStatus"
|
|
12
|
+
|
|
13
|
+
field :number, -> { String }, optional: false, nullable: true
|
|
14
|
+
|
|
15
|
+
field :issue_date, -> { String }, optional: false, nullable: true, api_name: "issueDate"
|
|
16
|
+
|
|
17
|
+
field :due_date, -> { String }, optional: false, nullable: true, api_name: "dueDate"
|
|
18
|
+
|
|
19
|
+
field :currency, -> { String }, optional: false, nullable: false
|
|
20
|
+
|
|
21
|
+
field :net_total, -> { String }, optional: false, nullable: false, api_name: "netTotal"
|
|
22
|
+
|
|
23
|
+
field :vat_total, -> { String }, optional: false, nullable: false, api_name: "vatTotal"
|
|
24
|
+
|
|
25
|
+
field :sales_tax_percent, -> { String }, optional: false, nullable: true, api_name: "salesTaxPercent"
|
|
26
|
+
|
|
27
|
+
field :sales_tax_total, -> { String }, optional: false, nullable: false, api_name: "salesTaxTotal"
|
|
28
|
+
|
|
29
|
+
field :gross_total, -> { String }, optional: false, nullable: false, api_name: "grossTotal"
|
|
30
|
+
|
|
31
|
+
field :paid_amount, -> { String }, optional: false, nullable: false, api_name: "paidAmount"
|
|
32
|
+
|
|
33
|
+
field :paid_on, -> { String }, optional: false, nullable: true, api_name: "paidOn"
|
|
34
|
+
|
|
35
|
+
field :notes, -> { String }, optional: false, nullable: true
|
|
36
|
+
|
|
37
|
+
field :pay_url, -> { String }, optional: false, nullable: true, api_name: "payUrl"
|
|
38
|
+
|
|
39
|
+
field :seller, -> { Nordlet::Public::Types::InvoicesGetPublicResponseSeller }, optional: false, nullable: false
|
|
40
|
+
|
|
41
|
+
field :buyer, -> { Nordlet::Public::Types::InvoicesGetPublicResponseBuyer }, optional: false, nullable: false
|
|
42
|
+
|
|
43
|
+
field :lines, -> { Internal::Types::Array[Nordlet::Public::Types::InvoicesGetPublicResponseLinesItem] }, optional: false, nullable: false
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Public
|
|
5
|
+
module Types
|
|
6
|
+
class InvoicesGetPublicResponseBuyer < Internal::Types::Model
|
|
7
|
+
field :name, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :vat_code, -> { String }, optional: false, nullable: true, api_name: "vatCode"
|
|
10
|
+
|
|
11
|
+
field :address, -> { Nordlet::Public::Types::InvoicesGetPublicResponseBuyerAddress }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :email, -> { String }, optional: false, nullable: true
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Public
|
|
5
|
+
module Types
|
|
6
|
+
class InvoicesGetPublicResponseBuyerAddress < Internal::Types::Model
|
|
7
|
+
field :street, -> { String }, optional: false, nullable: true
|
|
8
|
+
|
|
9
|
+
field :city, -> { String }, optional: false, nullable: true
|
|
10
|
+
|
|
11
|
+
field :postal_code, -> { String }, optional: false, nullable: true, api_name: "postalCode"
|
|
12
|
+
|
|
13
|
+
field :country_code, -> { String }, optional: false, nullable: true, api_name: "countryCode"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|