nordlet 0.7.0 → 0.7.1
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/declarations/client.rb +444 -8
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request.rb +15 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item.rb +55 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_asset_available.rb +17 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_asset_available_asset.rb +19 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_asset_transferred.rb +17 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_asset_transferred_asset.rb +17 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_car.rb +43 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_car_fuel.rb +15 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_expenses_entertainment.rb +15 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_expenses_home_telephone.rb +13 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_expenses_non_qualifying_relocation.rb +13 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_expenses_other.rb +15 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_expenses_travel_and_subsistence.rb +13 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_living_accommodation.rb +11 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_loan.rb +25 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_medical.rb +13 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_mileage_allowance.rb +11 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_other_class1a.rb +17 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_other_class1a_item.rb +18 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_other_non_class1a.rb +17 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_other_non_class1a_item.rb +18 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_payment.rb +15 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_payment_payment.rb +19 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_relocation.rb +11 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_services.rb +13 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_tax_on_notional_payments.rb +11 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_tax_paid_not_deducted.rb +11 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_vans.rb +13 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_vouchers_or_credit_cards.rb +13 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response.rb +23 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item.rb +55 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_asset_available.rb +17 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_asset_available_asset.rb +19 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_asset_transferred.rb +17 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_asset_transferred_asset.rb +17 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_car.rb +43 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_car_fuel.rb +15 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_expenses_entertainment.rb +15 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_expenses_home_telephone.rb +13 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_expenses_non_qualifying_relocation.rb +13 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_expenses_other.rb +15 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_expenses_travel_and_subsistence.rb +13 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_living_accommodation.rb +11 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_loan.rb +25 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_medical.rb +13 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_mileage_allowance.rb +11 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_other_class1a.rb +17 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_other_class1a_item.rb +18 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_other_non_class1a.rb +17 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_other_non_class1a_item.rb +18 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_payment.rb +15 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_payment_payment.rb +19 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_relocation.rb +11 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_services.rb +13 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_tax_on_notional_payments.rb +11 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_tax_paid_not_deducted.rb +11 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_vans.rb +13 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_vouchers_or_credit_cards.rb +13 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_delete_declarations_request.rb +11 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_delete_declarations_response.rb +11 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_request.rb +13 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response.rb +11 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item.rb +23 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item.rb +55 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_asset_available.rb +17 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_asset_available_asset.rb +19 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_asset_transferred.rb +17 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_asset_transferred_asset.rb +17 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_car.rb +43 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_car_fuel.rb +15 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_expenses_entertainment.rb +15 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_expenses_home_telephone.rb +13 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_expenses_non_qualifying_relocation.rb +13 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_expenses_other.rb +15 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_expenses_travel_and_subsistence.rb +13 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_living_accommodation.rb +11 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_loan.rb +25 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_medical.rb +13 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_mileage_allowance.rb +11 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_other_class1a.rb +17 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_other_class1a_item.rb +18 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_other_non_class1a.rb +17 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_other_non_class1a_item.rb +18 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_payment.rb +15 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_payment_payment.rb +19 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_relocation.rb +11 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_services.rb +13 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_tax_on_notional_payments.rb +11 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_tax_paid_not_deducted.rb +11 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_vans.rb +13 -0
- data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_vouchers_or_credit_cards.rb +13 -0
- data/lib/nordlet/declarations/types/gb_p45get_declarations_request.rb +11 -0
- data/lib/nordlet/declarations/types/gb_p45get_declarations_response.rb +31 -0
- data/lib/nordlet/declarations/types/gb_p45get_declarations_response_employee.rb +27 -0
- data/lib/nordlet/declarations/types/gb_p45get_declarations_response_employee_gender.rb +14 -0
- data/lib/nordlet/declarations/types/gb_p45get_declarations_response_employer.rb +19 -0
- data/lib/nordlet/declarations/types/gb_p45get_declarations_response_last_entries.rb +17 -0
- data/lib/nordlet/declarations/types/gb_p45get_declarations_response_this_employment.rb +13 -0
- data/lib/nordlet/declarations/types/gb_return_facts_get_declarations_request.rb +11 -0
- data/lib/nordlet/declarations/types/gb_return_facts_get_declarations_response.rb +13 -0
- data/lib/nordlet/declarations/types/gb_return_facts_get_declarations_response_facts.rb +57 -0
- data/lib/nordlet/declarations/types/gb_return_facts_get_declarations_response_facts_balancing_charges.rb +17 -0
- data/lib/nordlet/declarations/types/gb_return_facts_get_declarations_response_facts_capital_allowances.rb +21 -0
- data/lib/nordlet/declarations/types/gb_return_facts_set_declarations_request.rb +13 -0
- data/lib/nordlet/declarations/types/gb_return_facts_set_declarations_request_facts.rb +57 -0
- data/lib/nordlet/declarations/types/gb_return_facts_set_declarations_request_facts_balancing_charges.rb +17 -0
- data/lib/nordlet/declarations/types/gb_return_facts_set_declarations_request_facts_capital_allowances.rb +21 -0
- data/lib/nordlet/declarations/types/gb_return_facts_set_declarations_response.rb +13 -0
- data/lib/nordlet/declarations/types/gb_return_facts_set_declarations_response_facts.rb +57 -0
- data/lib/nordlet/declarations/types/gb_return_facts_set_declarations_response_facts_balancing_charges.rb +17 -0
- data/lib/nordlet/declarations/types/gb_return_facts_set_declarations_response_facts_capital_allowances.rb +21 -0
- data/lib/nordlet/declarations/types/us1099nec_list_declarations_request.rb +11 -0
- data/lib/nordlet/declarations/types/us1099nec_list_declarations_response.rb +19 -0
- data/lib/nordlet/declarations/types/us1099nec_list_declarations_response_excluded_item.rb +17 -0
- data/lib/nordlet/declarations/types/us1099nec_list_declarations_response_forms_item.rb +23 -0
- data/lib/nordlet/declarations/types/us1099nec_list_declarations_response_forms_item_name_type.rb +14 -0
- data/lib/nordlet/declarations/types/us_de_unemployment_get_declarations_request.rb +6 -0
- data/lib/nordlet/declarations/types/us_de_unemployment_get_declarations_response.rb +8 -0
- data/lib/nordlet/declarations/types/us_de_unemployment_get_declarations_response_uc8.rb +37 -0
- data/lib/nordlet/declarations/types/us_de_unemployment_get_declarations_response_uc8a.rb +15 -0
- data/lib/nordlet/declarations/types/us_de_unemployment_get_declarations_response_uc8a_pages_item.rb +13 -0
- data/lib/nordlet/declarations/types/us_de_unemployment_get_declarations_response_uc8a_pages_item_rows_item.rb +21 -0
- data/lib/nordlet/declarations/types/us_de_withholding_get_declarations_response.rb +2 -0
- data/lib/nordlet/declarations/types/us_de_withholding_get_declarations_response_wth_tax.rb +19 -0
- data/lib/nordlet/declarations/types/us_de_withholding_reconciliation_get_declarations_request.rb +13 -0
- data/lib/nordlet/declarations/types/us_de_withholding_reconciliation_get_declarations_response.rb +39 -0
- data/lib/nordlet/declarations/types/us_de_withholding_reconciliation_get_declarations_response_worksheet_item.rb +15 -0
- data/lib/nordlet/declarations/types/us_flsa_records_list_declarations_request.rb +15 -0
- data/lib/nordlet/declarations/types/us_flsa_records_list_declarations_response.rb +19 -0
- data/lib/nordlet/declarations/types/us_flsa_records_list_declarations_response_employees_item.rb +33 -0
- data/lib/nordlet/declarations/types/us_flsa_records_list_declarations_response_employees_item_address.rb +17 -0
- data/lib/nordlet/declarations/types/us_flsa_records_list_declarations_response_employees_item_pay_periods_item.rb +37 -0
- data/lib/nordlet/declarations/types/us_flsa_records_list_declarations_response_employees_item_pay_periods_item_additions_item.rb +17 -0
- data/lib/nordlet/declarations/types/us_flsa_records_list_declarations_response_employees_item_pay_periods_item_basis_of_pay.rb +13 -0
- data/lib/nordlet/declarations/types/us_flsa_records_list_declarations_response_employees_item_pay_periods_item_deductions_item.rb +13 -0
- data/lib/nordlet/declarations/types/us_flsa_records_list_declarations_response_employees_item_sex.rb +14 -0
- data/lib/nordlet/declarations/types/us_flsa_records_list_declarations_response_employees_item_workweek_start.rb +13 -0
- data/lib/nordlet/declarations/types/us_flsa_records_list_declarations_response_employees_item_workweeks_item.rb +23 -0
- data/lib/nordlet/declarations/types/us_flsa_records_list_declarations_response_employees_item_workweeks_item_days_item.rb +13 -0
- data/lib/nordlet/declarations/types/us_income_tax_return_get_declarations_request.rb +11 -0
- data/lib/nordlet/declarations/types/us_income_tax_return_get_declarations_response.rb +25 -0
- data/lib/nordlet/declarations/types/us_income_tax_return_get_declarations_response_form.rb +15 -0
- data/lib/nordlet/declarations/types/us_income_tax_return_get_declarations_response_other_lines_item.rb +15 -0
- data/lib/nordlet/declarations/types/us_income_tax_return_get_declarations_response_page1item.rb +15 -0
- data/lib/nordlet/declarations/types/us_income_tax_return_get_declarations_response_schedule_l_item.rb +17 -0
- data/lib/nordlet/declarations/types/us_sales_tax_get_declarations_request.rb +13 -0
- data/lib/nordlet/declarations/types/us_sales_tax_get_declarations_response.rb +19 -0
- data/lib/nordlet/declarations/types/us_sales_tax_get_declarations_response_jurisdictions_item.rb +19 -0
- data/lib/nordlet/partners/client.rb +122 -6
- data/lib/nordlet/partners/types/create_partners_request.rb +2 -0
- data/lib/nordlet/partners/types/create_partners_response.rb +2 -0
- data/lib/nordlet/partners/types/find_or_create_partners_request.rb +2 -0
- data/lib/nordlet/partners/types/find_or_create_partners_response_partner.rb +2 -0
- data/lib/nordlet/partners/types/get_partners_response.rb +2 -0
- data/lib/nordlet/partners/types/list_partners_response_rows_item.rb +2 -0
- data/lib/nordlet/partners/types/sales_tax_exemptions_cancel_partners_request.rb +13 -0
- data/lib/nordlet/partners/types/sales_tax_exemptions_cancel_partners_response.rb +41 -0
- data/lib/nordlet/partners/types/sales_tax_exemptions_create_partners_request.rb +37 -0
- data/lib/nordlet/partners/types/sales_tax_exemptions_create_partners_request_business_type.rb +32 -0
- data/lib/nordlet/partners/types/sales_tax_exemptions_create_partners_request_reasons_item.rb +25 -0
- data/lib/nordlet/partners/types/sales_tax_exemptions_create_partners_request_state.rb +36 -0
- data/lib/nordlet/partners/types/sales_tax_exemptions_create_partners_response.rb +41 -0
- data/lib/nordlet/partners/types/sales_tax_exemptions_list_partners_request.rb +11 -0
- data/lib/nordlet/partners/types/sales_tax_exemptions_list_partners_response.rb +11 -0
- data/lib/nordlet/partners/types/sales_tax_exemptions_list_partners_response_items_item.rb +41 -0
- data/lib/nordlet/partners/types/update_partners_request.rb +2 -0
- data/lib/nordlet/partners/types/update_partners_response.rb +2 -0
- data/lib/nordlet/payroll/client.rb +10 -6
- data/lib/nordlet/sales/client.rb +6 -4
- data/lib/nordlet/sales/types/invoices_apply_advance_sales_response.rb +6 -0
- data/lib/nordlet/sales/types/invoices_apply_advance_sales_response_delivery_address.rb +19 -0
- data/lib/nordlet/sales/types/invoices_create_sales_request.rb +4 -0
- data/lib/nordlet/sales/types/invoices_create_sales_request_delivery_address.rb +21 -0
- data/lib/nordlet/sales/types/invoices_create_sales_response.rb +6 -0
- data/lib/nordlet/sales/types/invoices_create_sales_response_delivery_address.rb +19 -0
- data/lib/nordlet/sales/types/invoices_get_sales_response.rb +6 -0
- data/lib/nordlet/sales/types/invoices_get_sales_response_delivery_address.rb +19 -0
- data/lib/nordlet/sales/types/invoices_issue_sales_response.rb +6 -0
- data/lib/nordlet/sales/types/invoices_issue_sales_response_delivery_address.rb +19 -0
- data/lib/nordlet/sales/types/invoices_list_sales_response_rows_item.rb +6 -0
- data/lib/nordlet/sales/types/invoices_list_sales_response_rows_item_delivery_address.rb +19 -0
- data/lib/nordlet/sales/types/invoices_lock_sales_response.rb +6 -0
- data/lib/nordlet/sales/types/invoices_lock_sales_response_delivery_address.rb +19 -0
- data/lib/nordlet/sales/types/invoices_reverse_sales_response.rb +6 -0
- data/lib/nordlet/sales/types/invoices_reverse_sales_response_delivery_address.rb +19 -0
- data/lib/nordlet/sales/types/invoices_unlock_sales_response.rb +6 -0
- data/lib/nordlet/sales/types/invoices_unlock_sales_response_delivery_address.rb +19 -0
- data/lib/nordlet/sales/types/invoices_update_sales_request.rb +4 -0
- data/lib/nordlet/sales/types/invoices_update_sales_request_delivery_address.rb +19 -0
- data/lib/nordlet/sales/types/invoices_update_sales_response.rb +6 -0
- data/lib/nordlet/sales/types/invoices_update_sales_response_delivery_address.rb +19 -0
- data/lib/nordlet/version.rb +1 -1
- data/lib/nordlet.rb +166 -0
- data/reference.md +1242 -95
- metadata +168 -2
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Declarations
|
|
5
|
+
module Types
|
|
6
|
+
class UsFlsaRecordsListDeclarationsResponseEmployeesItemWorkweeksItem < Internal::Types::Model
|
|
7
|
+
field :start, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :end_, -> { String }, optional: false, nullable: false, api_name: "end"
|
|
10
|
+
|
|
11
|
+
field :hours, -> { String }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :overtime_hours, -> { String }, optional: false, nullable: false, api_name: "overtimeHours"
|
|
14
|
+
|
|
15
|
+
field :days, -> { Internal::Types::Array[Nordlet::Declarations::Types::UsFlsaRecordsListDeclarationsResponseEmployeesItemWorkweeksItemDaysItem] }, optional: false, nullable: false
|
|
16
|
+
|
|
17
|
+
field :regular_rate, -> { String }, optional: false, nullable: true, api_name: "regularRate"
|
|
18
|
+
|
|
19
|
+
field :straight_time_earnings, -> { String }, optional: false, nullable: true, api_name: "straightTimeEarnings"
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Declarations
|
|
5
|
+
module Types
|
|
6
|
+
class UsFlsaRecordsListDeclarationsResponseEmployeesItemWorkweeksItemDaysItem < Internal::Types::Model
|
|
7
|
+
field :date, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :hours, -> { String }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Declarations
|
|
5
|
+
module Types
|
|
6
|
+
class UsIncomeTaxReturnGetDeclarationsResponse < Internal::Types::Model
|
|
7
|
+
field :form, -> { Nordlet::Declarations::Types::UsIncomeTaxReturnGetDeclarationsResponseForm }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :scheme, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :from_date, -> { String }, optional: false, nullable: false, api_name: "fromDate"
|
|
12
|
+
|
|
13
|
+
field :to_date, -> { String }, optional: false, nullable: false, api_name: "toDate"
|
|
14
|
+
|
|
15
|
+
field :page1, -> { Internal::Types::Array[Nordlet::Declarations::Types::UsIncomeTaxReturnGetDeclarationsResponsePage1Item] }, optional: false, nullable: false
|
|
16
|
+
|
|
17
|
+
field :schedule_l, -> { Internal::Types::Array[Nordlet::Declarations::Types::UsIncomeTaxReturnGetDeclarationsResponseScheduleLItem] }, optional: false, nullable: false, api_name: "scheduleL"
|
|
18
|
+
|
|
19
|
+
field :other_lines, -> { Internal::Types::Array[Nordlet::Declarations::Types::UsIncomeTaxReturnGetDeclarationsResponseOtherLinesItem] }, optional: false, nullable: false, api_name: "otherLines"
|
|
20
|
+
|
|
21
|
+
field :warnings, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Declarations
|
|
5
|
+
module Types
|
|
6
|
+
module UsIncomeTaxReturnGetDeclarationsResponseForm
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
ONE_THOUSAND_SIXTY_FIVE = "1065"
|
|
10
|
+
ONE_THOUSAND_ONE_HUNDRED_TWENTY = "1120"
|
|
11
|
+
ONE_THOUSAND_ONE_HUNDRED_TWENTY_S = "1120-S"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Declarations
|
|
5
|
+
module Types
|
|
6
|
+
class UsIncomeTaxReturnGetDeclarationsResponseOtherLinesItem < Internal::Types::Model
|
|
7
|
+
field :line, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :label, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :amount, -> { String }, optional: false, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
data/lib/nordlet/declarations/types/us_income_tax_return_get_declarations_response_page1item.rb
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Declarations
|
|
5
|
+
module Types
|
|
6
|
+
class UsIncomeTaxReturnGetDeclarationsResponsePage1Item < Internal::Types::Model
|
|
7
|
+
field :line, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :label, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :amount, -> { String }, optional: false, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Declarations
|
|
5
|
+
module Types
|
|
6
|
+
class UsIncomeTaxReturnGetDeclarationsResponseScheduleLItem < Internal::Types::Model
|
|
7
|
+
field :line, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :label, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :beginning, -> { String }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :end_, -> { String }, optional: false, nullable: false, api_name: "end"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Declarations
|
|
5
|
+
module Types
|
|
6
|
+
class UsSalesTaxGetDeclarationsRequest < Internal::Types::Model
|
|
7
|
+
field :from, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :to, -> { String }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Declarations
|
|
5
|
+
module Types
|
|
6
|
+
class UsSalesTaxGetDeclarationsResponse < Internal::Types::Model
|
|
7
|
+
field :from, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :to, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :jurisdictions, -> { Internal::Types::Array[Nordlet::Declarations::Types::UsSalesTaxGetDeclarationsResponseJurisdictionsItem] }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :sales_tax, -> { String }, optional: false, nullable: false, api_name: "salesTax"
|
|
14
|
+
|
|
15
|
+
field :warnings, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
data/lib/nordlet/declarations/types/us_sales_tax_get_declarations_response_jurisdictions_item.rb
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Declarations
|
|
5
|
+
module Types
|
|
6
|
+
class UsSalesTaxGetDeclarationsResponseJurisdictionsItem < Internal::Types::Model
|
|
7
|
+
field :jurisdiction, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :documents, -> { Integer }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :taxable_sales, -> { String }, optional: false, nullable: false, api_name: "taxableSales"
|
|
12
|
+
|
|
13
|
+
field :exempt_sales, -> { String }, optional: false, nullable: false, api_name: "exemptSales"
|
|
14
|
+
|
|
15
|
+
field :sales_tax, -> { String }, optional: false, nullable: false, api_name: "salesTax"
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -729,6 +729,120 @@ module Nordlet
|
|
|
729
729
|
end
|
|
730
730
|
end
|
|
731
731
|
|
|
732
|
+
# Records a US customer's Streamlined Sales Tax certificate of exemption (SSTGB form F0003) for one of its 24
|
|
733
|
+
# member states (`state`, such as `US-OH`; 422 for another state and for a company outside the US): the reasons of
|
|
734
|
+
# section 4 (A to M; `otherReason` explains L), `reasonDetail` for the department, name or number the form asks
|
|
735
|
+
# with a reason, the business type of section 3 (01 to 20; `otherBusinessType` explains 20), the ID number of
|
|
736
|
+
# section 5 and the state or country that issued it, `singlePurchaseReference` (section 1: the purchase order
|
|
737
|
+
# number the certificate is for; unset makes it a blanket certificate), the signer (not needed for an electronic
|
|
738
|
+
# certificate) and `receivedOn`, the day the seller received it. An invoice or credit note with sales tax for that
|
|
739
|
+
# state is then charged no sales tax when the certificate covers it: received no later than 90 days after the
|
|
740
|
+
# issue date, not cancelled by then, for a single purchase only on the document whose `orderNumber` is the
|
|
741
|
+
# reference, and for a blanket certificate only while purchases under it are no more than 12 months apart.
|
|
742
|
+
#
|
|
743
|
+
# @param request_options [Hash]
|
|
744
|
+
# @param params [Nordlet::Partners::Types::SalesTaxExemptionsCreatePartnersRequest]
|
|
745
|
+
# @option request_options [String] :base_url
|
|
746
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
747
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
748
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
749
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
750
|
+
#
|
|
751
|
+
# @return [Nordlet::Partners::Types::SalesTaxExemptionsCreatePartnersResponse]
|
|
752
|
+
def sales_tax_exemptions_create(request_options: {}, **params)
|
|
753
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
754
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
755
|
+
base_url: request_options[:base_url],
|
|
756
|
+
method: "POST",
|
|
757
|
+
path: "v1/partners/sales-tax-exemptions/create",
|
|
758
|
+
body: Nordlet::Partners::Types::SalesTaxExemptionsCreatePartnersRequest.new(params).to_h,
|
|
759
|
+
request_options: request_options
|
|
760
|
+
)
|
|
761
|
+
begin
|
|
762
|
+
response = @client.send(request)
|
|
763
|
+
rescue Net::HTTPRequestTimeout
|
|
764
|
+
raise Nordlet::Errors::TimeoutError
|
|
765
|
+
end
|
|
766
|
+
code = response.code.to_i
|
|
767
|
+
if code.between?(200, 299)
|
|
768
|
+
Nordlet::Partners::Types::SalesTaxExemptionsCreatePartnersResponse.load(response.body)
|
|
769
|
+
else
|
|
770
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
771
|
+
raise error_class.new(response.body, code: code)
|
|
772
|
+
end
|
|
773
|
+
end
|
|
774
|
+
|
|
775
|
+
# Lists the certificates of exemption recorded with `partners/sales-tax-exemptions/create`, of one partner when
|
|
776
|
+
# `partnerId` is given, by state and the day they were received. Answers 422 for a company outside the US.
|
|
777
|
+
#
|
|
778
|
+
# @param request_options [Hash]
|
|
779
|
+
# @param params [Nordlet::Partners::Types::SalesTaxExemptionsListPartnersRequest]
|
|
780
|
+
# @option request_options [String] :base_url
|
|
781
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
782
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
783
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
784
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
785
|
+
#
|
|
786
|
+
# @return [Nordlet::Partners::Types::SalesTaxExemptionsListPartnersResponse]
|
|
787
|
+
def sales_tax_exemptions_list(request_options: {}, **params)
|
|
788
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
789
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
790
|
+
base_url: request_options[:base_url],
|
|
791
|
+
method: "POST",
|
|
792
|
+
path: "v1/partners/sales-tax-exemptions/list",
|
|
793
|
+
body: Nordlet::Partners::Types::SalesTaxExemptionsListPartnersRequest.new(params).to_h,
|
|
794
|
+
request_options: request_options
|
|
795
|
+
)
|
|
796
|
+
begin
|
|
797
|
+
response = @client.send(request)
|
|
798
|
+
rescue Net::HTTPRequestTimeout
|
|
799
|
+
raise Nordlet::Errors::TimeoutError
|
|
800
|
+
end
|
|
801
|
+
code = response.code.to_i
|
|
802
|
+
if code.between?(200, 299)
|
|
803
|
+
Nordlet::Partners::Types::SalesTaxExemptionsListPartnersResponse.load(response.body)
|
|
804
|
+
else
|
|
805
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
806
|
+
raise error_class.new(response.body, code: code)
|
|
807
|
+
end
|
|
808
|
+
end
|
|
809
|
+
|
|
810
|
+
# Records that the customer cancelled a certificate of exemption on `cancelledOn`; documents issued from that day
|
|
811
|
+
# are charged sales tax again. The certificate is kept for the records. Answers 404 for an unknown or already
|
|
812
|
+
# cancelled certificate and 422 for a company outside the US.
|
|
813
|
+
#
|
|
814
|
+
# @param request_options [Hash]
|
|
815
|
+
# @param params [Nordlet::Partners::Types::SalesTaxExemptionsCancelPartnersRequest]
|
|
816
|
+
# @option request_options [String] :base_url
|
|
817
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
818
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
819
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
820
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
821
|
+
#
|
|
822
|
+
# @return [Nordlet::Partners::Types::SalesTaxExemptionsCancelPartnersResponse]
|
|
823
|
+
def sales_tax_exemptions_cancel(request_options: {}, **params)
|
|
824
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
825
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
826
|
+
base_url: request_options[:base_url],
|
|
827
|
+
method: "POST",
|
|
828
|
+
path: "v1/partners/sales-tax-exemptions/cancel",
|
|
829
|
+
body: Nordlet::Partners::Types::SalesTaxExemptionsCancelPartnersRequest.new(params).to_h,
|
|
830
|
+
request_options: request_options
|
|
831
|
+
)
|
|
832
|
+
begin
|
|
833
|
+
response = @client.send(request)
|
|
834
|
+
rescue Net::HTTPRequestTimeout
|
|
835
|
+
raise Nordlet::Errors::TimeoutError
|
|
836
|
+
end
|
|
837
|
+
code = response.code.to_i
|
|
838
|
+
if code.between?(200, 299)
|
|
839
|
+
Nordlet::Partners::Types::SalesTaxExemptionsCancelPartnersResponse.load(response.body)
|
|
840
|
+
else
|
|
841
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
842
|
+
raise error_class.new(response.body, code: code)
|
|
843
|
+
end
|
|
844
|
+
end
|
|
845
|
+
|
|
732
846
|
# Lists the VAT reviews opened by VIES checks of partners' VAT codes, with reason `invalid`, `name_mismatch` or
|
|
733
847
|
# `service_error`; filterable by `partnerId`, `status`, `reason` and `vatCode`, sortable by `createdAt`,
|
|
734
848
|
# `partnerName` (the name of the partner), `vatCode`, `reason`, `details` (the service message for a service
|
|
@@ -809,7 +923,8 @@ module Nordlet
|
|
|
809
923
|
# `code` already used by a live partner of the company is refused with 409. A `vatCode` is checked at once against
|
|
810
924
|
# VIES, or a UK number with HMRC and the result stored on the partner: an invalid number, a VIES name that shares
|
|
811
925
|
# no word with the partner's name, or a VIES failure opens a VAT review (`vat_review.opened`), while a code that
|
|
812
|
-
# neither service can check is stored unchecked (see `partners/validate-vat`).
|
|
926
|
+
# neither service can check is stored unchecked (see `partners/validate-vat`). An entry of `identifiers` that is
|
|
927
|
+
# not a partner identifier of the company's country or does not have its format is refused with 422.
|
|
813
928
|
#
|
|
814
929
|
# @param request_options [Hash]
|
|
815
930
|
# @param params [Nordlet::Partners::Types::CreatePartnersRequest]
|
|
@@ -917,11 +1032,12 @@ module Nordlet
|
|
|
917
1032
|
end
|
|
918
1033
|
end
|
|
919
1034
|
|
|
920
|
-
# Changes the given fields of a partner; the clearable fields accept null.
|
|
921
|
-
#
|
|
922
|
-
# is refused with
|
|
923
|
-
#
|
|
924
|
-
#
|
|
1035
|
+
# Changes the given fields of a partner; the clearable fields accept null. `identifiers` replaces the stored set
|
|
1036
|
+
# (null clears it); an entry that is not a partner identifier of the company's country or does not have its format
|
|
1037
|
+
# is refused with 422. A new address country re-derives `legalCountryClass` unless the class is given, and a
|
|
1038
|
+
# `code` already used by another live partner of the company is refused with 409. A changed `vatCode` resets the
|
|
1039
|
+
# VIES result and is checked at once as in `partners/create`; a removed code, or one that neither service can
|
|
1040
|
+
# check, resolves the partner's open VAT review as `superseded` (`vat_review.resolved`).
|
|
925
1041
|
#
|
|
926
1042
|
# @param request_options [Hash]
|
|
927
1043
|
# @param params [Nordlet::Partners::Types::UpdatePartnersRequest]
|
|
@@ -77,6 +77,8 @@ module Nordlet
|
|
|
77
77
|
field :is_active, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "isActive"
|
|
78
78
|
|
|
79
79
|
field :legal_country_class, -> { Nordlet::Partners::Types::CreatePartnersRequestLegalCountryClass }, optional: true, nullable: false, api_name: "legalCountryClass"
|
|
80
|
+
|
|
81
|
+
field :identifiers, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false
|
|
80
82
|
end
|
|
81
83
|
end
|
|
82
84
|
end
|
|
@@ -84,6 +84,8 @@ module Nordlet
|
|
|
84
84
|
|
|
85
85
|
field :legal_country_class, -> { Nordlet::Partners::Types::CreatePartnersResponseLegalCountryClass }, optional: false, nullable: true, api_name: "legalCountryClass"
|
|
86
86
|
|
|
87
|
+
field :identifiers, -> { Internal::Types::Hash[String, String] }, optional: false, nullable: false
|
|
88
|
+
|
|
87
89
|
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
88
90
|
|
|
89
91
|
field :updated_at, -> { String }, optional: false, nullable: false, api_name: "updatedAt"
|
|
@@ -78,6 +78,8 @@ module Nordlet
|
|
|
78
78
|
|
|
79
79
|
field :legal_country_class, -> { Nordlet::Partners::Types::FindOrCreatePartnersRequestLegalCountryClass }, optional: true, nullable: false, api_name: "legalCountryClass"
|
|
80
80
|
|
|
81
|
+
field :identifiers, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false
|
|
82
|
+
|
|
81
83
|
field :iban, -> { String }, optional: true, nullable: false
|
|
82
84
|
end
|
|
83
85
|
end
|
|
@@ -84,6 +84,8 @@ module Nordlet
|
|
|
84
84
|
|
|
85
85
|
field :legal_country_class, -> { Nordlet::Partners::Types::FindOrCreatePartnersResponsePartnerLegalCountryClass }, optional: false, nullable: true, api_name: "legalCountryClass"
|
|
86
86
|
|
|
87
|
+
field :identifiers, -> { Internal::Types::Hash[String, String] }, optional: false, nullable: false
|
|
88
|
+
|
|
87
89
|
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
88
90
|
|
|
89
91
|
field :updated_at, -> { String }, optional: false, nullable: false, api_name: "updatedAt"
|
|
@@ -84,6 +84,8 @@ module Nordlet
|
|
|
84
84
|
|
|
85
85
|
field :legal_country_class, -> { Nordlet::Partners::Types::GetPartnersResponseLegalCountryClass }, optional: false, nullable: true, api_name: "legalCountryClass"
|
|
86
86
|
|
|
87
|
+
field :identifiers, -> { Internal::Types::Hash[String, String] }, optional: false, nullable: false
|
|
88
|
+
|
|
87
89
|
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
88
90
|
|
|
89
91
|
field :updated_at, -> { String }, optional: false, nullable: false, api_name: "updatedAt"
|
|
@@ -84,6 +84,8 @@ module Nordlet
|
|
|
84
84
|
|
|
85
85
|
field :legal_country_class, -> { Nordlet::Partners::Types::ListPartnersResponseRowsItemLegalCountryClass }, optional: false, nullable: true, api_name: "legalCountryClass"
|
|
86
86
|
|
|
87
|
+
field :identifiers, -> { Internal::Types::Hash[String, String] }, optional: false, nullable: false
|
|
88
|
+
|
|
87
89
|
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
88
90
|
|
|
89
91
|
field :updated_at, -> { String }, optional: false, nullable: false, api_name: "updatedAt"
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Partners
|
|
5
|
+
module Types
|
|
6
|
+
class SalesTaxExemptionsCancelPartnersRequest < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :cancelled_on, -> { String }, optional: false, nullable: false, api_name: "cancelledOn"
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Partners
|
|
5
|
+
module Types
|
|
6
|
+
class SalesTaxExemptionsCancelPartnersResponse < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :partner_id, -> { String }, optional: false, nullable: false, api_name: "partnerId"
|
|
10
|
+
|
|
11
|
+
field :state, -> { String }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :reasons, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :other_reason, -> { String }, optional: false, nullable: true, api_name: "otherReason"
|
|
16
|
+
|
|
17
|
+
field :reason_detail, -> { String }, optional: false, nullable: true, api_name: "reasonDetail"
|
|
18
|
+
|
|
19
|
+
field :business_type, -> { String }, optional: false, nullable: false, api_name: "businessType"
|
|
20
|
+
|
|
21
|
+
field :other_business_type, -> { String }, optional: false, nullable: true, api_name: "otherBusinessType"
|
|
22
|
+
|
|
23
|
+
field :id_number, -> { String }, optional: false, nullable: false, api_name: "idNumber"
|
|
24
|
+
|
|
25
|
+
field :id_issued_by, -> { String }, optional: false, nullable: false, api_name: "idIssuedBy"
|
|
26
|
+
|
|
27
|
+
field :single_purchase_reference, -> { String }, optional: false, nullable: true, api_name: "singlePurchaseReference"
|
|
28
|
+
|
|
29
|
+
field :signed_by, -> { String }, optional: false, nullable: true, api_name: "signedBy"
|
|
30
|
+
|
|
31
|
+
field :signer_title, -> { String }, optional: false, nullable: true, api_name: "signerTitle"
|
|
32
|
+
|
|
33
|
+
field :signed_on, -> { String }, optional: false, nullable: true, api_name: "signedOn"
|
|
34
|
+
|
|
35
|
+
field :received_on, -> { String }, optional: false, nullable: false, api_name: "receivedOn"
|
|
36
|
+
|
|
37
|
+
field :cancelled_on, -> { String }, optional: false, nullable: true, api_name: "cancelledOn"
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Partners
|
|
5
|
+
module Types
|
|
6
|
+
class SalesTaxExemptionsCreatePartnersRequest < Internal::Types::Model
|
|
7
|
+
field :partner_id, -> { String }, optional: false, nullable: false, api_name: "partnerId"
|
|
8
|
+
|
|
9
|
+
field :state, -> { Nordlet::Partners::Types::SalesTaxExemptionsCreatePartnersRequestState }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :reasons, -> { Internal::Types::Array[Nordlet::Partners::Types::SalesTaxExemptionsCreatePartnersRequestReasonsItem] }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :other_reason, -> { String }, optional: true, nullable: false, api_name: "otherReason"
|
|
14
|
+
|
|
15
|
+
field :reason_detail, -> { String }, optional: true, nullable: false, api_name: "reasonDetail"
|
|
16
|
+
|
|
17
|
+
field :business_type, -> { Nordlet::Partners::Types::SalesTaxExemptionsCreatePartnersRequestBusinessType }, optional: false, nullable: false, api_name: "businessType"
|
|
18
|
+
|
|
19
|
+
field :other_business_type, -> { String }, optional: true, nullable: false, api_name: "otherBusinessType"
|
|
20
|
+
|
|
21
|
+
field :id_number, -> { String }, optional: false, nullable: false, api_name: "idNumber"
|
|
22
|
+
|
|
23
|
+
field :id_issued_by, -> { String }, optional: false, nullable: false, api_name: "idIssuedBy"
|
|
24
|
+
|
|
25
|
+
field :single_purchase_reference, -> { String }, optional: true, nullable: false, api_name: "singlePurchaseReference"
|
|
26
|
+
|
|
27
|
+
field :signed_by, -> { String }, optional: true, nullable: false, api_name: "signedBy"
|
|
28
|
+
|
|
29
|
+
field :signer_title, -> { String }, optional: true, nullable: false, api_name: "signerTitle"
|
|
30
|
+
|
|
31
|
+
field :signed_on, -> { String }, optional: true, nullable: false, api_name: "signedOn"
|
|
32
|
+
|
|
33
|
+
field :received_on, -> { String }, optional: false, nullable: false, api_name: "receivedOn"
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Partners
|
|
5
|
+
module Types
|
|
6
|
+
module SalesTaxExemptionsCreatePartnersRequestBusinessType
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
TEN = "10"
|
|
10
|
+
ELEVEN = "11"
|
|
11
|
+
TWELVE = "12"
|
|
12
|
+
THIRTEEN = "13"
|
|
13
|
+
FOURTEEN = "14"
|
|
14
|
+
FIFTEEN = "15"
|
|
15
|
+
SIXTEEN = "16"
|
|
16
|
+
SEVENTEEN = "17"
|
|
17
|
+
EIGHTEEN = "18"
|
|
18
|
+
NINETEEN = "19"
|
|
19
|
+
TWENTY = "20"
|
|
20
|
+
ONE = "01"
|
|
21
|
+
TWO = "02"
|
|
22
|
+
THREE = "03"
|
|
23
|
+
FOUR = "04"
|
|
24
|
+
FIVE = "05"
|
|
25
|
+
SIX = "06"
|
|
26
|
+
SEVEN = "07"
|
|
27
|
+
EIGHT = "08"
|
|
28
|
+
NINE = "09"
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Partners
|
|
5
|
+
module Types
|
|
6
|
+
module SalesTaxExemptionsCreatePartnersRequestReasonsItem
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
A = "A"
|
|
10
|
+
B = "B"
|
|
11
|
+
C = "C"
|
|
12
|
+
D = "D"
|
|
13
|
+
E = "E"
|
|
14
|
+
F = "F"
|
|
15
|
+
G = "G"
|
|
16
|
+
H = "H"
|
|
17
|
+
I = "I"
|
|
18
|
+
J = "J"
|
|
19
|
+
K = "K"
|
|
20
|
+
L = "L"
|
|
21
|
+
M = "M"
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Partners
|
|
5
|
+
module Types
|
|
6
|
+
module SalesTaxExemptionsCreatePartnersRequestState
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
US_AR = "US-AR"
|
|
10
|
+
US_GA = "US-GA"
|
|
11
|
+
US_IA = "US-IA"
|
|
12
|
+
US_IN = "US-IN"
|
|
13
|
+
US_KS = "US-KS"
|
|
14
|
+
US_KY = "US-KY"
|
|
15
|
+
US_MI = "US-MI"
|
|
16
|
+
US_MN = "US-MN"
|
|
17
|
+
US_NC = "US-NC"
|
|
18
|
+
US_ND = "US-ND"
|
|
19
|
+
US_NE = "US-NE"
|
|
20
|
+
US_NJ = "US-NJ"
|
|
21
|
+
US_NV = "US-NV"
|
|
22
|
+
US_OH = "US-OH"
|
|
23
|
+
US_OK = "US-OK"
|
|
24
|
+
US_RI = "US-RI"
|
|
25
|
+
US_SD = "US-SD"
|
|
26
|
+
US_TN = "US-TN"
|
|
27
|
+
US_UT = "US-UT"
|
|
28
|
+
US_VT = "US-VT"
|
|
29
|
+
US_WA = "US-WA"
|
|
30
|
+
US_WI = "US-WI"
|
|
31
|
+
US_WV = "US-WV"
|
|
32
|
+
US_WY = "US-WY"
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Partners
|
|
5
|
+
module Types
|
|
6
|
+
class SalesTaxExemptionsCreatePartnersResponse < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :partner_id, -> { String }, optional: false, nullable: false, api_name: "partnerId"
|
|
10
|
+
|
|
11
|
+
field :state, -> { String }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :reasons, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :other_reason, -> { String }, optional: false, nullable: true, api_name: "otherReason"
|
|
16
|
+
|
|
17
|
+
field :reason_detail, -> { String }, optional: false, nullable: true, api_name: "reasonDetail"
|
|
18
|
+
|
|
19
|
+
field :business_type, -> { String }, optional: false, nullable: false, api_name: "businessType"
|
|
20
|
+
|
|
21
|
+
field :other_business_type, -> { String }, optional: false, nullable: true, api_name: "otherBusinessType"
|
|
22
|
+
|
|
23
|
+
field :id_number, -> { String }, optional: false, nullable: false, api_name: "idNumber"
|
|
24
|
+
|
|
25
|
+
field :id_issued_by, -> { String }, optional: false, nullable: false, api_name: "idIssuedBy"
|
|
26
|
+
|
|
27
|
+
field :single_purchase_reference, -> { String }, optional: false, nullable: true, api_name: "singlePurchaseReference"
|
|
28
|
+
|
|
29
|
+
field :signed_by, -> { String }, optional: false, nullable: true, api_name: "signedBy"
|
|
30
|
+
|
|
31
|
+
field :signer_title, -> { String }, optional: false, nullable: true, api_name: "signerTitle"
|
|
32
|
+
|
|
33
|
+
field :signed_on, -> { String }, optional: false, nullable: true, api_name: "signedOn"
|
|
34
|
+
|
|
35
|
+
field :received_on, -> { String }, optional: false, nullable: false, api_name: "receivedOn"
|
|
36
|
+
|
|
37
|
+
field :cancelled_on, -> { String }, optional: false, nullable: true, api_name: "cancelledOn"
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Partners
|
|
5
|
+
module Types
|
|
6
|
+
class SalesTaxExemptionsListPartnersRequest < Internal::Types::Model
|
|
7
|
+
field :partner_id, -> { String }, optional: true, nullable: false, api_name: "partnerId"
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|