nordlet 0.1.2 → 0.2.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.
Files changed (174) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nordlet/account/types/post_v1account_companies_create_request.rb +2 -0
  3. data/lib/nordlet/account/types/post_v1account_companies_profile_response.rb +2 -0
  4. data/lib/nordlet/account/types/post_v1account_companies_update_request.rb +2 -0
  5. data/lib/nordlet/account/types/post_v1account_companies_update_response.rb +2 -0
  6. data/lib/nordlet/agreements/client.rb +64 -0
  7. data/lib/nordlet/agreements/types/post_v1agreements_agreements_billing_run_request.rb +11 -0
  8. data/lib/nordlet/agreements/types/post_v1agreements_agreements_billing_run_response.rb +15 -0
  9. data/lib/nordlet/agreements/types/post_v1agreements_agreements_billing_run_response_errors_item.rb +13 -0
  10. data/lib/nordlet/agreements/types/post_v1agreements_agreements_billing_run_response_generated_item.rb +17 -0
  11. data/lib/nordlet/agreements/types/post_v1agreements_agreements_create_request.rb +2 -0
  12. data/lib/nordlet/agreements/types/post_v1agreements_agreements_create_request_billing_period.rb +15 -0
  13. data/lib/nordlet/agreements/types/post_v1agreements_agreements_create_request_items_item.rb +2 -0
  14. data/lib/nordlet/agreements/types/post_v1agreements_agreements_create_response.rb +2 -0
  15. data/lib/nordlet/agreements/types/post_v1agreements_agreements_create_response_billing_period.rb +15 -0
  16. data/lib/nordlet/agreements/types/post_v1agreements_agreements_create_response_items_item.rb +2 -0
  17. data/lib/nordlet/agreements/types/post_v1agreements_agreements_generate_invoice_request.rb +13 -0
  18. data/lib/nordlet/agreements/types/post_v1agreements_agreements_generate_invoice_response.rb +17 -0
  19. data/lib/nordlet/agreements/types/post_v1agreements_agreements_get_response.rb +2 -0
  20. data/lib/nordlet/agreements/types/post_v1agreements_agreements_get_response_billing_period.rb +15 -0
  21. data/lib/nordlet/agreements/types/post_v1agreements_agreements_get_response_items_item.rb +2 -0
  22. data/lib/nordlet/agreements/types/post_v1agreements_agreements_list_response_rows_item.rb +2 -0
  23. data/lib/nordlet/agreements/types/post_v1agreements_agreements_list_response_rows_item_billing_period.rb +15 -0
  24. data/lib/nordlet/agreements/types/post_v1agreements_agreements_update_request.rb +2 -0
  25. data/lib/nordlet/agreements/types/post_v1agreements_agreements_update_request_billing_period.rb +15 -0
  26. data/lib/nordlet/agreements/types/post_v1agreements_agreements_update_response.rb +2 -0
  27. data/lib/nordlet/agreements/types/post_v1agreements_agreements_update_response_billing_period.rb +15 -0
  28. data/lib/nordlet/agreements/types/post_v1agreements_agreements_update_response_items_item.rb +2 -0
  29. data/lib/nordlet/declarations/client.rb +224 -0
  30. data/lib/nordlet/declarations/types/post_v1declarations_eu_distance_sales_threshold_get_request.rb +11 -0
  31. data/lib/nordlet/declarations/types/post_v1declarations_eu_distance_sales_threshold_get_response.rb +23 -0
  32. data/lib/nordlet/declarations/types/post_v1declarations_eu_distance_sales_threshold_get_response_current_year.rb +15 -0
  33. data/lib/nordlet/declarations/types/post_v1declarations_eu_distance_sales_threshold_get_response_preceding_year.rb +15 -0
  34. data/lib/nordlet/declarations/types/post_v1declarations_eu_ioss_compute_response.rb +4 -0
  35. data/lib/nordlet/declarations/types/post_v1declarations_eu_ioss_compute_response_corrections_item.rb +23 -0
  36. data/lib/nordlet/declarations/types/post_v1declarations_eu_ioss_compute_response_corrections_total.rb +13 -0
  37. data/lib/nordlet/declarations/types/post_v1declarations_eu_oss_compute_response.rb +4 -0
  38. data/lib/nordlet/declarations/types/post_v1declarations_eu_oss_compute_response_corrections_item.rb +23 -0
  39. data/lib/nordlet/declarations/types/post_v1declarations_eu_oss_compute_response_corrections_total.rb +13 -0
  40. data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_cross_border_report_compute_request.rb +13 -0
  41. data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_cross_border_report_compute_response.rb +25 -0
  42. data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_cross_border_report_compute_response_rows_item.rb +15 -0
  43. data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_threshold_get_request.rb +11 -0
  44. data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_threshold_get_response.rb +31 -0
  45. data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_threshold_get_response_intra_eu.rb +23 -0
  46. data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_threshold_get_response_intra_eu_status.rb +15 -0
  47. data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_threshold_get_response_preceding_turnover.rb +15 -0
  48. data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_threshold_get_response_status.rb +17 -0
  49. data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_threshold_get_response_threshold.rb +19 -0
  50. data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_threshold_get_response_threshold_sectors_item.rb +15 -0
  51. data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_threshold_get_response_turnover.rb +15 -0
  52. data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_thresholds_list_request.rb +9 -0
  53. data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_thresholds_list_response.rb +15 -0
  54. data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_thresholds_list_response_thresholds_item.rb +23 -0
  55. data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_thresholds_list_response_thresholds_item_intra_eu_acquisitions_trigger.rb +15 -0
  56. data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_thresholds_list_response_thresholds_item_sectors_item.rb +15 -0
  57. data/lib/nordlet/declarations/types/post_v1declarations_eu_union_turnover_get_request.rb +11 -0
  58. data/lib/nordlet/declarations/types/post_v1declarations_eu_union_turnover_get_response.rb +25 -0
  59. data/lib/nordlet/declarations/types/post_v1declarations_eu_union_turnover_get_response_current_year.rb +15 -0
  60. data/lib/nordlet/declarations/types/post_v1declarations_eu_union_turnover_get_response_previous_year.rb +15 -0
  61. data/lib/nordlet/declarations/types/post_v1declarations_eu_union_turnover_get_response_status.rb +16 -0
  62. data/lib/nordlet/declarations/types/post_v1declarations_eu_vat_return_compute_request.rb +17 -0
  63. data/lib/nordlet/declarations/types/post_v1declarations_eu_vat_return_compute_response.rb +29 -0
  64. data/lib/nordlet/declarations/types/post_v1declarations_eu_vat_return_compute_response_boxes_item.rb +15 -0
  65. data/lib/nordlet/declarations/types/post_v1declarations_eu_vat_return_compute_response_frequency.rb +15 -0
  66. data/lib/nordlet/declarations/types/post_v1declarations_eu_vat_return_packs_list_request.rb +9 -0
  67. data/lib/nordlet/declarations/types/post_v1declarations_eu_vat_return_packs_list_response.rb +11 -0
  68. data/lib/nordlet/declarations/types/post_v1declarations_eu_vat_return_packs_list_response_packs_item.rb +19 -0
  69. data/lib/nordlet/declarations/types/post_v1declarations_eu_vat_return_packs_list_response_packs_item_frequency.rb +15 -0
  70. data/lib/nordlet/ledger/types/post_v1ledger_posting_rules_update_request_rules_item_key.rb +3 -0
  71. data/lib/nordlet/reference/client.rb +39 -0
  72. data/lib/nordlet/reference/types/post_v1reference_eu_vat_rates_list_response.rb +2 -0
  73. data/lib/nordlet/reference/types/post_v1reference_eu_vat_rates_list_response_rows_item.rb +2 -0
  74. data/lib/nordlet/reference/types/post_v1reference_eu_vat_rates_list_response_rows_item_source.rb +14 -0
  75. data/lib/nordlet/reference/types/post_v1reference_eu_vat_rates_set_overrides_request.rb +13 -0
  76. data/lib/nordlet/reference/types/post_v1reference_eu_vat_rates_set_overrides_request_rates_item.rb +13 -0
  77. data/lib/nordlet/reference/types/post_v1reference_eu_vat_rates_set_overrides_request_rates_item_category.rb +16 -0
  78. data/lib/nordlet/reference/types/post_v1reference_eu_vat_rates_set_overrides_response.rb +17 -0
  79. data/lib/nordlet/reference/types/post_v1reference_eu_vat_rates_set_overrides_response_rows_item.rb +13 -0
  80. data/lib/nordlet/reference/types/post_v1reference_eu_vat_rates_set_overrides_response_rows_item_category.rb +16 -0
  81. data/lib/nordlet/reference/types/post_v1reference_eu_vat_rates_set_overrides_response_source.rb +14 -0
  82. data/lib/nordlet/reference/types/post_v1reference_vat_resolve_response_scheme.rb +1 -0
  83. data/lib/nordlet/sales/client.rb +292 -0
  84. data/lib/nordlet/sales/types/post_v1sales_invoices_apply_advance_response.rb +2 -0
  85. data/lib/nordlet/sales/types/post_v1sales_invoices_apply_advance_response_lines_item.rb +14 -0
  86. data/lib/nordlet/sales/types/post_v1sales_invoices_apply_advance_response_lines_item_recognition_method.rb +16 -0
  87. data/lib/nordlet/sales/types/post_v1sales_invoices_apply_advance_response_lines_item_recognition_milestones_item.rb +15 -0
  88. data/lib/nordlet/sales/types/post_v1sales_invoices_apply_advance_response_vat_scheme.rb +1 -0
  89. data/lib/nordlet/sales/types/post_v1sales_invoices_create_request_lines_item.rb +6 -0
  90. data/lib/nordlet/sales/types/post_v1sales_invoices_create_request_lines_item_recognition.rb +17 -0
  91. data/lib/nordlet/sales/types/post_v1sales_invoices_create_request_lines_item_recognition_method.rb +16 -0
  92. data/lib/nordlet/sales/types/post_v1sales_invoices_create_request_lines_item_recognition_milestones_item.rb +15 -0
  93. data/lib/nordlet/sales/types/post_v1sales_invoices_create_request_vat_scheme.rb +1 -0
  94. data/lib/nordlet/sales/types/post_v1sales_invoices_create_response.rb +2 -0
  95. data/lib/nordlet/sales/types/post_v1sales_invoices_create_response_lines_item.rb +14 -0
  96. data/lib/nordlet/sales/types/post_v1sales_invoices_create_response_lines_item_recognition_method.rb +16 -0
  97. data/lib/nordlet/sales/types/post_v1sales_invoices_create_response_lines_item_recognition_milestones_item.rb +15 -0
  98. data/lib/nordlet/sales/types/post_v1sales_invoices_create_response_vat_scheme.rb +1 -0
  99. data/lib/nordlet/sales/types/post_v1sales_invoices_get_response.rb +2 -0
  100. data/lib/nordlet/sales/types/post_v1sales_invoices_get_response_lines_item.rb +14 -0
  101. data/lib/nordlet/sales/types/post_v1sales_invoices_get_response_lines_item_recognition_method.rb +16 -0
  102. data/lib/nordlet/sales/types/post_v1sales_invoices_get_response_lines_item_recognition_milestones_item.rb +15 -0
  103. data/lib/nordlet/sales/types/post_v1sales_invoices_get_response_vat_scheme.rb +1 -0
  104. data/lib/nordlet/sales/types/post_v1sales_invoices_issue_response.rb +2 -0
  105. data/lib/nordlet/sales/types/post_v1sales_invoices_issue_response_lines_item.rb +14 -0
  106. data/lib/nordlet/sales/types/post_v1sales_invoices_issue_response_lines_item_recognition_method.rb +16 -0
  107. data/lib/nordlet/sales/types/post_v1sales_invoices_issue_response_lines_item_recognition_milestones_item.rb +15 -0
  108. data/lib/nordlet/sales/types/post_v1sales_invoices_issue_response_vat_scheme.rb +1 -0
  109. data/lib/nordlet/sales/types/post_v1sales_invoices_list_response_rows_item.rb +2 -0
  110. data/lib/nordlet/sales/types/post_v1sales_invoices_list_response_rows_item_vat_scheme.rb +1 -0
  111. data/lib/nordlet/sales/types/post_v1sales_invoices_update_request_lines_item.rb +6 -0
  112. data/lib/nordlet/sales/types/post_v1sales_invoices_update_request_lines_item_recognition.rb +17 -0
  113. data/lib/nordlet/sales/types/post_v1sales_invoices_update_request_lines_item_recognition_method.rb +16 -0
  114. data/lib/nordlet/sales/types/post_v1sales_invoices_update_request_lines_item_recognition_milestones_item.rb +15 -0
  115. data/lib/nordlet/sales/types/post_v1sales_invoices_update_request_vat_scheme.rb +1 -0
  116. data/lib/nordlet/sales/types/post_v1sales_invoices_update_response.rb +2 -0
  117. data/lib/nordlet/sales/types/post_v1sales_invoices_update_response_lines_item.rb +14 -0
  118. data/lib/nordlet/sales/types/post_v1sales_invoices_update_response_lines_item_recognition_method.rb +16 -0
  119. data/lib/nordlet/sales/types/post_v1sales_invoices_update_response_lines_item_recognition_milestones_item.rb +15 -0
  120. data/lib/nordlet/sales/types/post_v1sales_invoices_update_response_vat_scheme.rb +1 -0
  121. data/lib/nordlet/sales/types/post_v1sales_recognition_compute_request.rb +11 -0
  122. data/lib/nordlet/sales/types/post_v1sales_recognition_compute_response.rb +15 -0
  123. data/lib/nordlet/sales/types/post_v1sales_recognition_compute_response_rows_item.rb +25 -0
  124. data/lib/nordlet/sales/types/post_v1sales_recognition_modify_request.rb +19 -0
  125. data/lib/nordlet/sales/types/post_v1sales_recognition_modify_request_approach.rb +14 -0
  126. data/lib/nordlet/sales/types/post_v1sales_recognition_modify_request_new_milestones_item.rb +15 -0
  127. data/lib/nordlet/sales/types/post_v1sales_recognition_modify_response.rb +23 -0
  128. data/lib/nordlet/sales/types/post_v1sales_recognition_modify_response_approach.rb +14 -0
  129. data/lib/nordlet/sales/types/post_v1sales_recognition_progress_request.rb +15 -0
  130. data/lib/nordlet/sales/types/post_v1sales_recognition_progress_response.rb +19 -0
  131. data/lib/nordlet/sales/types/post_v1sales_recognition_run_request.rb +15 -0
  132. data/lib/nordlet/sales/types/post_v1sales_recognition_run_response.rb +21 -0
  133. data/lib/nordlet/sales/types/post_v1sales_recognition_run_response_trigger.rb +18 -0
  134. data/lib/nordlet/sales/types/post_v1sales_recognition_runs_list_request.rb +17 -0
  135. data/lib/nordlet/sales/types/post_v1sales_recognition_runs_list_request_filter_item.rb +15 -0
  136. data/lib/nordlet/sales/types/post_v1sales_recognition_runs_list_request_filter_item_op.rb +18 -0
  137. data/lib/nordlet/sales/types/post_v1sales_recognition_runs_list_request_filter_item_value.rb +19 -0
  138. data/lib/nordlet/sales/types/post_v1sales_recognition_runs_list_request_filter_item_value_three_item.rb +15 -0
  139. data/lib/nordlet/sales/types/post_v1sales_recognition_runs_list_request_sort_item.rb +13 -0
  140. data/lib/nordlet/sales/types/post_v1sales_recognition_runs_list_request_sort_item_dir.rb +14 -0
  141. data/lib/nordlet/sales/types/post_v1sales_recognition_runs_list_response.rb +17 -0
  142. data/lib/nordlet/sales/types/post_v1sales_recognition_runs_list_response_rows_item.rb +23 -0
  143. data/lib/nordlet/sales/types/post_v1sales_recognition_runs_list_response_rows_item_trigger.rb +18 -0
  144. data/lib/nordlet/sales/types/post_v1sales_recognition_schedules_list_request.rb +17 -0
  145. data/lib/nordlet/sales/types/post_v1sales_recognition_schedules_list_request_filter_item.rb +15 -0
  146. data/lib/nordlet/sales/types/post_v1sales_recognition_schedules_list_request_filter_item_op.rb +18 -0
  147. data/lib/nordlet/sales/types/post_v1sales_recognition_schedules_list_request_filter_item_value.rb +19 -0
  148. data/lib/nordlet/sales/types/post_v1sales_recognition_schedules_list_request_filter_item_value_three_item.rb +15 -0
  149. data/lib/nordlet/sales/types/post_v1sales_recognition_schedules_list_request_sort_item.rb +13 -0
  150. data/lib/nordlet/sales/types/post_v1sales_recognition_schedules_list_request_sort_item_dir.rb +14 -0
  151. data/lib/nordlet/sales/types/post_v1sales_recognition_schedules_list_response.rb +17 -0
  152. data/lib/nordlet/sales/types/post_v1sales_recognition_schedules_list_response_rows_item.rb +33 -0
  153. data/lib/nordlet/sales/types/post_v1sales_recognition_schedules_list_response_rows_item_method.rb +16 -0
  154. data/lib/nordlet/sales/types/post_v1sales_recognition_schedules_list_response_rows_item_status.rb +15 -0
  155. data/lib/nordlet/sales/types/post_v1sales_recognition_summary_request.rb +11 -0
  156. data/lib/nordlet/sales/types/post_v1sales_recognition_summary_response.rb +13 -0
  157. data/lib/nordlet/sales/types/post_v1sales_recognition_summary_response_rows_item.rb +29 -0
  158. data/lib/nordlet/sales/types/post_v1sales_recognition_summary_response_rows_item_method.rb +16 -0
  159. data/lib/nordlet/sales/types/post_v1sales_recognition_summary_response_totals.rb +15 -0
  160. data/lib/nordlet/sales/types/post_v1sales_refund_liability_list_request.rb +17 -0
  161. data/lib/nordlet/sales/types/post_v1sales_refund_liability_list_request_filter_item.rb +15 -0
  162. data/lib/nordlet/sales/types/post_v1sales_refund_liability_list_request_filter_item_op.rb +18 -0
  163. data/lib/nordlet/sales/types/post_v1sales_refund_liability_list_request_filter_item_value.rb +19 -0
  164. data/lib/nordlet/sales/types/post_v1sales_refund_liability_list_request_filter_item_value_three_item.rb +15 -0
  165. data/lib/nordlet/sales/types/post_v1sales_refund_liability_list_request_sort_item.rb +13 -0
  166. data/lib/nordlet/sales/types/post_v1sales_refund_liability_list_request_sort_item_dir.rb +14 -0
  167. data/lib/nordlet/sales/types/post_v1sales_refund_liability_list_response.rb +17 -0
  168. data/lib/nordlet/sales/types/post_v1sales_refund_liability_list_response_rows_item.rb +27 -0
  169. data/lib/nordlet/sales/types/post_v1sales_refund_liability_true_up_request.rb +15 -0
  170. data/lib/nordlet/sales/types/post_v1sales_refund_liability_true_up_response.rb +21 -0
  171. data/lib/nordlet/version.rb +1 -1
  172. data/lib/nordlet.rb +124 -0
  173. data/reference.md +1416 -224
  174. metadata +126 -2
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class PostV1SalesInvoicesApplyAdvanceResponseLinesItemRecognitionMilestonesItem < Internal::Types::Model
7
+ field :description, -> { String }, optional: false, nullable: false
8
+
9
+ field :expected_date, -> { String }, optional: false, nullable: true, api_name: "expectedDate"
10
+
11
+ field :percent, -> { String }, optional: false, nullable: false
12
+ end
13
+ end
14
+ end
15
+ end
@@ -14,6 +14,7 @@ module Nordlet
14
14
  MARKETPLACE_DEEMED = "marketplace_deemed"
15
15
  EXPORT = "export"
16
16
  OUT_OF_SCOPE = "out_of_scope"
17
+ SME_EXEMPT = "sme_exempt"
17
18
  end
18
19
  end
19
20
  end
@@ -21,6 +21,12 @@ module Nordlet
21
21
  field :vat_classifier_code, -> { String }, optional: true, nullable: false, api_name: "vatClassifierCode"
22
22
 
23
23
  field :cost_center_id, -> { String }, optional: true, nullable: false, api_name: "costCenterId"
24
+
25
+ field :recognition, -> { Nordlet::Sales::Types::PostV1SalesInvoicesCreateRequestLinesItemRecognition }, optional: true, nullable: false
26
+
27
+ field :standalone_selling_price, -> { String }, optional: true, nullable: false, api_name: "standaloneSellingPrice"
28
+
29
+ field :refund_estimate_percent, -> { String }, optional: true, nullable: false, api_name: "refundEstimatePercent"
24
30
  end
25
31
  end
26
32
  end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class PostV1SalesInvoicesCreateRequestLinesItemRecognition < Internal::Types::Model
7
+ field :method_, -> { Nordlet::Sales::Types::PostV1SalesInvoicesCreateRequestLinesItemRecognitionMethod }, optional: true, nullable: false, api_name: "method"
8
+
9
+ field :start_date, -> { String }, optional: true, nullable: false, api_name: "startDate"
10
+
11
+ field :end_date, -> { String }, optional: true, nullable: false, api_name: "endDate"
12
+
13
+ field :milestones, -> { Internal::Types::Array[Nordlet::Sales::Types::PostV1SalesInvoicesCreateRequestLinesItemRecognitionMilestonesItem] }, optional: true, nullable: false
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ module PostV1SalesInvoicesCreateRequestLinesItemRecognitionMethod
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ POINT_IN_TIME = "point_in_time"
10
+ RATABLE = "ratable"
11
+ MILESTONE = "milestone"
12
+ PERCENT_COMPLETE = "percent_complete"
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class PostV1SalesInvoicesCreateRequestLinesItemRecognitionMilestonesItem < Internal::Types::Model
7
+ field :description, -> { String }, optional: false, nullable: false
8
+
9
+ field :expected_date, -> { String }, optional: true, nullable: false, api_name: "expectedDate"
10
+
11
+ field :percent, -> { String }, optional: false, nullable: false
12
+ end
13
+ end
14
+ end
15
+ end
@@ -14,6 +14,7 @@ module Nordlet
14
14
  MARKETPLACE_DEEMED = "marketplace_deemed"
15
15
  EXPORT = "export"
16
16
  OUT_OF_SCOPE = "out_of_scope"
17
+ SME_EXEMPT = "sme_exempt"
17
18
  end
18
19
  end
19
20
  end
@@ -40,6 +40,8 @@ module Nordlet
40
40
 
41
41
  field :credited_invoice_id, -> { String }, optional: false, nullable: true, api_name: "creditedInvoiceId"
42
42
 
43
+ field :agreement_id, -> { String }, optional: false, nullable: true, api_name: "agreementId"
44
+
43
45
  field :vat_scheme, -> { Nordlet::Sales::Types::PostV1SalesInvoicesCreateResponseVatScheme }, optional: false, nullable: true, api_name: "vatScheme"
44
46
 
45
47
  field :vat_country_code, -> { String }, optional: false, nullable: true, api_name: "vatCountryCode"
@@ -31,6 +31,20 @@ module Nordlet
31
31
  field :line_gross, -> { String }, optional: false, nullable: false, api_name: "lineGross"
32
32
 
33
33
  field :sort_order, -> { Integer }, optional: false, nullable: false, api_name: "sortOrder"
34
+
35
+ field :recognition_method, -> { Nordlet::Sales::Types::PostV1SalesInvoicesCreateResponseLinesItemRecognitionMethod }, optional: false, nullable: false, api_name: "recognitionMethod"
36
+
37
+ field :recognition_start_date, -> { String }, optional: false, nullable: true, api_name: "recognitionStartDate"
38
+
39
+ field :recognition_end_date, -> { String }, optional: false, nullable: true, api_name: "recognitionEndDate"
40
+
41
+ field :recognition_milestones, -> { Internal::Types::Array[Nordlet::Sales::Types::PostV1SalesInvoicesCreateResponseLinesItemRecognitionMilestonesItem] }, optional: false, nullable: true, api_name: "recognitionMilestones"
42
+
43
+ field :standalone_selling_price, -> { String }, optional: false, nullable: true, api_name: "standaloneSellingPrice"
44
+
45
+ field :allocated_net, -> { String }, optional: false, nullable: true, api_name: "allocatedNet"
46
+
47
+ field :refund_estimate_percent, -> { String }, optional: false, nullable: true, api_name: "refundEstimatePercent"
34
48
  end
35
49
  end
36
50
  end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ module PostV1SalesInvoicesCreateResponseLinesItemRecognitionMethod
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ POINT_IN_TIME = "point_in_time"
10
+ RATABLE = "ratable"
11
+ MILESTONE = "milestone"
12
+ PERCENT_COMPLETE = "percent_complete"
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class PostV1SalesInvoicesCreateResponseLinesItemRecognitionMilestonesItem < Internal::Types::Model
7
+ field :description, -> { String }, optional: false, nullable: false
8
+
9
+ field :expected_date, -> { String }, optional: false, nullable: true, api_name: "expectedDate"
10
+
11
+ field :percent, -> { String }, optional: false, nullable: false
12
+ end
13
+ end
14
+ end
15
+ end
@@ -14,6 +14,7 @@ module Nordlet
14
14
  MARKETPLACE_DEEMED = "marketplace_deemed"
15
15
  EXPORT = "export"
16
16
  OUT_OF_SCOPE = "out_of_scope"
17
+ SME_EXEMPT = "sme_exempt"
17
18
  end
18
19
  end
19
20
  end
@@ -40,6 +40,8 @@ module Nordlet
40
40
 
41
41
  field :credited_invoice_id, -> { String }, optional: false, nullable: true, api_name: "creditedInvoiceId"
42
42
 
43
+ field :agreement_id, -> { String }, optional: false, nullable: true, api_name: "agreementId"
44
+
43
45
  field :vat_scheme, -> { Nordlet::Sales::Types::PostV1SalesInvoicesGetResponseVatScheme }, optional: false, nullable: true, api_name: "vatScheme"
44
46
 
45
47
  field :vat_country_code, -> { String }, optional: false, nullable: true, api_name: "vatCountryCode"
@@ -31,6 +31,20 @@ module Nordlet
31
31
  field :line_gross, -> { String }, optional: false, nullable: false, api_name: "lineGross"
32
32
 
33
33
  field :sort_order, -> { Integer }, optional: false, nullable: false, api_name: "sortOrder"
34
+
35
+ field :recognition_method, -> { Nordlet::Sales::Types::PostV1SalesInvoicesGetResponseLinesItemRecognitionMethod }, optional: false, nullable: false, api_name: "recognitionMethod"
36
+
37
+ field :recognition_start_date, -> { String }, optional: false, nullable: true, api_name: "recognitionStartDate"
38
+
39
+ field :recognition_end_date, -> { String }, optional: false, nullable: true, api_name: "recognitionEndDate"
40
+
41
+ field :recognition_milestones, -> { Internal::Types::Array[Nordlet::Sales::Types::PostV1SalesInvoicesGetResponseLinesItemRecognitionMilestonesItem] }, optional: false, nullable: true, api_name: "recognitionMilestones"
42
+
43
+ field :standalone_selling_price, -> { String }, optional: false, nullable: true, api_name: "standaloneSellingPrice"
44
+
45
+ field :allocated_net, -> { String }, optional: false, nullable: true, api_name: "allocatedNet"
46
+
47
+ field :refund_estimate_percent, -> { String }, optional: false, nullable: true, api_name: "refundEstimatePercent"
34
48
  end
35
49
  end
36
50
  end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ module PostV1SalesInvoicesGetResponseLinesItemRecognitionMethod
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ POINT_IN_TIME = "point_in_time"
10
+ RATABLE = "ratable"
11
+ MILESTONE = "milestone"
12
+ PERCENT_COMPLETE = "percent_complete"
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class PostV1SalesInvoicesGetResponseLinesItemRecognitionMilestonesItem < Internal::Types::Model
7
+ field :description, -> { String }, optional: false, nullable: false
8
+
9
+ field :expected_date, -> { String }, optional: false, nullable: true, api_name: "expectedDate"
10
+
11
+ field :percent, -> { String }, optional: false, nullable: false
12
+ end
13
+ end
14
+ end
15
+ end
@@ -14,6 +14,7 @@ module Nordlet
14
14
  MARKETPLACE_DEEMED = "marketplace_deemed"
15
15
  EXPORT = "export"
16
16
  OUT_OF_SCOPE = "out_of_scope"
17
+ SME_EXEMPT = "sme_exempt"
17
18
  end
18
19
  end
19
20
  end
@@ -40,6 +40,8 @@ module Nordlet
40
40
 
41
41
  field :credited_invoice_id, -> { String }, optional: false, nullable: true, api_name: "creditedInvoiceId"
42
42
 
43
+ field :agreement_id, -> { String }, optional: false, nullable: true, api_name: "agreementId"
44
+
43
45
  field :vat_scheme, -> { Nordlet::Sales::Types::PostV1SalesInvoicesIssueResponseVatScheme }, optional: false, nullable: true, api_name: "vatScheme"
44
46
 
45
47
  field :vat_country_code, -> { String }, optional: false, nullable: true, api_name: "vatCountryCode"
@@ -31,6 +31,20 @@ module Nordlet
31
31
  field :line_gross, -> { String }, optional: false, nullable: false, api_name: "lineGross"
32
32
 
33
33
  field :sort_order, -> { Integer }, optional: false, nullable: false, api_name: "sortOrder"
34
+
35
+ field :recognition_method, -> { Nordlet::Sales::Types::PostV1SalesInvoicesIssueResponseLinesItemRecognitionMethod }, optional: false, nullable: false, api_name: "recognitionMethod"
36
+
37
+ field :recognition_start_date, -> { String }, optional: false, nullable: true, api_name: "recognitionStartDate"
38
+
39
+ field :recognition_end_date, -> { String }, optional: false, nullable: true, api_name: "recognitionEndDate"
40
+
41
+ field :recognition_milestones, -> { Internal::Types::Array[Nordlet::Sales::Types::PostV1SalesInvoicesIssueResponseLinesItemRecognitionMilestonesItem] }, optional: false, nullable: true, api_name: "recognitionMilestones"
42
+
43
+ field :standalone_selling_price, -> { String }, optional: false, nullable: true, api_name: "standaloneSellingPrice"
44
+
45
+ field :allocated_net, -> { String }, optional: false, nullable: true, api_name: "allocatedNet"
46
+
47
+ field :refund_estimate_percent, -> { String }, optional: false, nullable: true, api_name: "refundEstimatePercent"
34
48
  end
35
49
  end
36
50
  end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ module PostV1SalesInvoicesIssueResponseLinesItemRecognitionMethod
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ POINT_IN_TIME = "point_in_time"
10
+ RATABLE = "ratable"
11
+ MILESTONE = "milestone"
12
+ PERCENT_COMPLETE = "percent_complete"
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class PostV1SalesInvoicesIssueResponseLinesItemRecognitionMilestonesItem < Internal::Types::Model
7
+ field :description, -> { String }, optional: false, nullable: false
8
+
9
+ field :expected_date, -> { String }, optional: false, nullable: true, api_name: "expectedDate"
10
+
11
+ field :percent, -> { String }, optional: false, nullable: false
12
+ end
13
+ end
14
+ end
15
+ end
@@ -14,6 +14,7 @@ module Nordlet
14
14
  MARKETPLACE_DEEMED = "marketplace_deemed"
15
15
  EXPORT = "export"
16
16
  OUT_OF_SCOPE = "out_of_scope"
17
+ SME_EXEMPT = "sme_exempt"
17
18
  end
18
19
  end
19
20
  end
@@ -40,6 +40,8 @@ module Nordlet
40
40
 
41
41
  field :credited_invoice_id, -> { String }, optional: false, nullable: true, api_name: "creditedInvoiceId"
42
42
 
43
+ field :agreement_id, -> { String }, optional: false, nullable: true, api_name: "agreementId"
44
+
43
45
  field :vat_scheme, -> { Nordlet::Sales::Types::PostV1SalesInvoicesListResponseRowsItemVatScheme }, optional: false, nullable: true, api_name: "vatScheme"
44
46
 
45
47
  field :vat_country_code, -> { String }, optional: false, nullable: true, api_name: "vatCountryCode"
@@ -14,6 +14,7 @@ module Nordlet
14
14
  MARKETPLACE_DEEMED = "marketplace_deemed"
15
15
  EXPORT = "export"
16
16
  OUT_OF_SCOPE = "out_of_scope"
17
+ SME_EXEMPT = "sme_exempt"
17
18
  end
18
19
  end
19
20
  end
@@ -21,6 +21,12 @@ module Nordlet
21
21
  field :vat_classifier_code, -> { String }, optional: true, nullable: false, api_name: "vatClassifierCode"
22
22
 
23
23
  field :cost_center_id, -> { String }, optional: true, nullable: false, api_name: "costCenterId"
24
+
25
+ field :recognition, -> { Nordlet::Sales::Types::PostV1SalesInvoicesUpdateRequestLinesItemRecognition }, optional: true, nullable: false
26
+
27
+ field :standalone_selling_price, -> { String }, optional: true, nullable: false, api_name: "standaloneSellingPrice"
28
+
29
+ field :refund_estimate_percent, -> { String }, optional: true, nullable: false, api_name: "refundEstimatePercent"
24
30
  end
25
31
  end
26
32
  end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class PostV1SalesInvoicesUpdateRequestLinesItemRecognition < Internal::Types::Model
7
+ field :method_, -> { Nordlet::Sales::Types::PostV1SalesInvoicesUpdateRequestLinesItemRecognitionMethod }, optional: true, nullable: false, api_name: "method"
8
+
9
+ field :start_date, -> { String }, optional: true, nullable: false, api_name: "startDate"
10
+
11
+ field :end_date, -> { String }, optional: true, nullable: false, api_name: "endDate"
12
+
13
+ field :milestones, -> { Internal::Types::Array[Nordlet::Sales::Types::PostV1SalesInvoicesUpdateRequestLinesItemRecognitionMilestonesItem] }, optional: true, nullable: false
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ module PostV1SalesInvoicesUpdateRequestLinesItemRecognitionMethod
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ POINT_IN_TIME = "point_in_time"
10
+ RATABLE = "ratable"
11
+ MILESTONE = "milestone"
12
+ PERCENT_COMPLETE = "percent_complete"
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class PostV1SalesInvoicesUpdateRequestLinesItemRecognitionMilestonesItem < Internal::Types::Model
7
+ field :description, -> { String }, optional: false, nullable: false
8
+
9
+ field :expected_date, -> { String }, optional: true, nullable: false, api_name: "expectedDate"
10
+
11
+ field :percent, -> { String }, optional: false, nullable: false
12
+ end
13
+ end
14
+ end
15
+ end
@@ -14,6 +14,7 @@ module Nordlet
14
14
  MARKETPLACE_DEEMED = "marketplace_deemed"
15
15
  EXPORT = "export"
16
16
  OUT_OF_SCOPE = "out_of_scope"
17
+ SME_EXEMPT = "sme_exempt"
17
18
  end
18
19
  end
19
20
  end
@@ -40,6 +40,8 @@ module Nordlet
40
40
 
41
41
  field :credited_invoice_id, -> { String }, optional: false, nullable: true, api_name: "creditedInvoiceId"
42
42
 
43
+ field :agreement_id, -> { String }, optional: false, nullable: true, api_name: "agreementId"
44
+
43
45
  field :vat_scheme, -> { Nordlet::Sales::Types::PostV1SalesInvoicesUpdateResponseVatScheme }, optional: false, nullable: true, api_name: "vatScheme"
44
46
 
45
47
  field :vat_country_code, -> { String }, optional: false, nullable: true, api_name: "vatCountryCode"
@@ -31,6 +31,20 @@ module Nordlet
31
31
  field :line_gross, -> { String }, optional: false, nullable: false, api_name: "lineGross"
32
32
 
33
33
  field :sort_order, -> { Integer }, optional: false, nullable: false, api_name: "sortOrder"
34
+
35
+ field :recognition_method, -> { Nordlet::Sales::Types::PostV1SalesInvoicesUpdateResponseLinesItemRecognitionMethod }, optional: false, nullable: false, api_name: "recognitionMethod"
36
+
37
+ field :recognition_start_date, -> { String }, optional: false, nullable: true, api_name: "recognitionStartDate"
38
+
39
+ field :recognition_end_date, -> { String }, optional: false, nullable: true, api_name: "recognitionEndDate"
40
+
41
+ field :recognition_milestones, -> { Internal::Types::Array[Nordlet::Sales::Types::PostV1SalesInvoicesUpdateResponseLinesItemRecognitionMilestonesItem] }, optional: false, nullable: true, api_name: "recognitionMilestones"
42
+
43
+ field :standalone_selling_price, -> { String }, optional: false, nullable: true, api_name: "standaloneSellingPrice"
44
+
45
+ field :allocated_net, -> { String }, optional: false, nullable: true, api_name: "allocatedNet"
46
+
47
+ field :refund_estimate_percent, -> { String }, optional: false, nullable: true, api_name: "refundEstimatePercent"
34
48
  end
35
49
  end
36
50
  end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ module PostV1SalesInvoicesUpdateResponseLinesItemRecognitionMethod
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ POINT_IN_TIME = "point_in_time"
10
+ RATABLE = "ratable"
11
+ MILESTONE = "milestone"
12
+ PERCENT_COMPLETE = "percent_complete"
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class PostV1SalesInvoicesUpdateResponseLinesItemRecognitionMilestonesItem < Internal::Types::Model
7
+ field :description, -> { String }, optional: false, nullable: false
8
+
9
+ field :expected_date, -> { String }, optional: false, nullable: true, api_name: "expectedDate"
10
+
11
+ field :percent, -> { String }, optional: false, nullable: false
12
+ end
13
+ end
14
+ end
15
+ end
@@ -14,6 +14,7 @@ module Nordlet
14
14
  MARKETPLACE_DEEMED = "marketplace_deemed"
15
15
  EXPORT = "export"
16
16
  OUT_OF_SCOPE = "out_of_scope"
17
+ SME_EXEMPT = "sme_exempt"
17
18
  end
18
19
  end
19
20
  end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class PostV1SalesRecognitionComputeRequest < Internal::Types::Model
7
+ field :as_of_date, -> { String }, optional: true, nullable: false, api_name: "asOfDate"
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class PostV1SalesRecognitionComputeResponse < Internal::Types::Model
7
+ field :as_of_date, -> { String }, optional: false, nullable: false, api_name: "asOfDate"
8
+
9
+ field :total_amount, -> { String }, optional: false, nullable: false, api_name: "totalAmount"
10
+
11
+ field :rows, -> { Internal::Types::Array[Nordlet::Sales::Types::PostV1SalesRecognitionComputeResponseRowsItem] }, optional: false, nullable: false
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class PostV1SalesRecognitionComputeResponseRowsItem < Internal::Types::Model
7
+ field :schedule_id, -> { String }, optional: false, nullable: false, api_name: "scheduleId"
8
+
9
+ field :invoice_id, -> { String }, optional: false, nullable: false, api_name: "invoiceId"
10
+
11
+ field :invoice_full_number, -> { String }, optional: false, nullable: true, api_name: "invoiceFullNumber"
12
+
13
+ field :invoice_line_id, -> { String }, optional: false, nullable: false, api_name: "invoiceLineId"
14
+
15
+ field :line_description, -> { String }, optional: false, nullable: false, api_name: "lineDescription"
16
+
17
+ field :schedule_date, -> { String }, optional: false, nullable: true, api_name: "scheduleDate"
18
+
19
+ field :description, -> { String }, optional: false, nullable: true
20
+
21
+ field :amount, -> { String }, optional: false, nullable: false
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class PostV1SalesRecognitionModifyRequest < Internal::Types::Model
7
+ field :invoice_line_id, -> { String }, optional: false, nullable: false, api_name: "invoiceLineId"
8
+
9
+ field :approach, -> { Nordlet::Sales::Types::PostV1SalesRecognitionModifyRequestApproach }, optional: false, nullable: false
10
+
11
+ field :date, -> { String }, optional: true, nullable: false
12
+
13
+ field :new_end_date, -> { String }, optional: true, nullable: false, api_name: "newEndDate"
14
+
15
+ field :new_milestones, -> { Internal::Types::Array[Nordlet::Sales::Types::PostV1SalesRecognitionModifyRequestNewMilestonesItem] }, optional: true, nullable: false, api_name: "newMilestones"
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ module PostV1SalesRecognitionModifyRequestApproach
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ PROSPECTIVE = "prospective"
10
+ CUMULATIVE_CATCH_UP = "cumulative_catch_up"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class PostV1SalesRecognitionModifyRequestNewMilestonesItem < Internal::Types::Model
7
+ field :description, -> { String }, optional: false, nullable: false
8
+
9
+ field :expected_date, -> { String }, optional: true, nullable: false, api_name: "expectedDate"
10
+
11
+ field :percent, -> { String }, optional: false, nullable: false
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class PostV1SalesRecognitionModifyResponse < Internal::Types::Model
7
+ field :invoice_line_id, -> { String }, optional: false, nullable: false, api_name: "invoiceLineId"
8
+
9
+ field :approach, -> { Nordlet::Sales::Types::PostV1SalesRecognitionModifyResponseApproach }, optional: false, nullable: false
10
+
11
+ field :cancelled_count, -> { Integer }, optional: false, nullable: false, api_name: "cancelledCount"
12
+
13
+ field :new_pending_count, -> { Integer }, optional: false, nullable: false, api_name: "newPendingCount"
14
+
15
+ field :catch_up_amount, -> { String }, optional: false, nullable: false, api_name: "catchUpAmount"
16
+
17
+ field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
18
+
19
+ field :new_end_date, -> { String }, optional: false, nullable: true, api_name: "newEndDate"
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ module PostV1SalesRecognitionModifyResponseApproach
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ PROSPECTIVE = "prospective"
10
+ CUMULATIVE_CATCH_UP = "cumulative_catch_up"
11
+ end
12
+ end
13
+ end
14
+ end