xero-node 13.3.1 → 14.0.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 (121) hide show
  1. package/CODE_OF_CONDUCT.md +76 -76
  2. package/CONTRIBUTING.md +112 -112
  3. package/LICENSE +21 -21
  4. package/README.md +468 -468
  5. package/dist/gen/api/accountingApi.d.ts +3 -2
  6. package/dist/gen/api/accountingApi.js +8 -4
  7. package/dist/gen/api/accountingApi.js.map +1 -1
  8. package/dist/gen/api/appStoreApi.d.ts +1 -1
  9. package/dist/gen/api/appStoreApi.js +2 -2
  10. package/dist/gen/api/assetApi.d.ts +1 -1
  11. package/dist/gen/api/assetApi.js +2 -2
  12. package/dist/gen/api/bankfeedsApi.d.ts +1 -1
  13. package/dist/gen/api/bankfeedsApi.js +2 -2
  14. package/dist/gen/api/filesApi.d.ts +1 -1
  15. package/dist/gen/api/filesApi.js +2 -2
  16. package/dist/gen/api/financeApi.d.ts +1 -62
  17. package/dist/gen/api/financeApi.js +2 -286
  18. package/dist/gen/api/financeApi.js.map +1 -1
  19. package/dist/gen/api/payrollAUApi.d.ts +1 -1
  20. package/dist/gen/api/payrollAUApi.js +2 -2
  21. package/dist/gen/api/payrollAUV2Api.d.ts +178 -0
  22. package/dist/gen/api/payrollAUV2Api.js +776 -0
  23. package/dist/gen/api/payrollAUV2Api.js.map +1 -0
  24. package/dist/gen/api/payrollNZApi.d.ts +1 -1
  25. package/dist/gen/api/payrollNZApi.js +2 -2
  26. package/dist/gen/api/payrollUKApi.d.ts +1 -1
  27. package/dist/gen/api/payrollUKApi.js +2 -2
  28. package/dist/gen/api/projectApi.d.ts +1 -1
  29. package/dist/gen/api/projectApi.js +2 -2
  30. package/dist/gen/model/accounting/overpayment.d.ts +4 -0
  31. package/dist/gen/model/accounting/overpayment.js +5 -0
  32. package/dist/gen/model/accounting/overpayment.js.map +1 -1
  33. package/dist/gen/model/finance/models.d.ts +0 -10
  34. package/dist/gen/model/finance/models.js +0 -30
  35. package/dist/gen/model/finance/models.js.map +1 -1
  36. package/dist/gen/model/payroll-au/earningsRate.d.ts +4 -0
  37. package/dist/gen/model/payroll-au/earningsRate.js +5 -0
  38. package/dist/gen/model/payroll-au/earningsRate.js.map +1 -1
  39. package/dist/gen/model/payroll-au/employee.d.ts +0 -2
  40. package/dist/gen/model/payroll-au/employee.js +0 -5
  41. package/dist/gen/model/payroll-au/employee.js.map +1 -1
  42. package/dist/gen/model/payroll-au/leaveLine.d.ts +4 -0
  43. package/dist/gen/model/payroll-au/leaveLine.js +5 -0
  44. package/dist/gen/model/payroll-au/leaveLine.js.map +1 -1
  45. package/dist/gen/model/payroll-au/leaveType.d.ts +4 -0
  46. package/dist/gen/model/payroll-au/leaveType.js +5 -0
  47. package/dist/gen/model/payroll-au/leaveType.js.map +1 -1
  48. package/dist/gen/model/payroll-au/models.d.ts +1 -0
  49. package/dist/gen/model/payroll-au/models.js +3 -0
  50. package/dist/gen/model/payroll-au/models.js.map +1 -1
  51. package/dist/gen/model/{finance/userActivitiesResponse.d.ts → payroll-au/openingBalanceLeaveLine.d.ts} +5 -7
  52. package/dist/gen/model/payroll-au/openingBalanceLeaveLine.js +23 -0
  53. package/dist/gen/model/payroll-au/openingBalanceLeaveLine.js.map +1 -0
  54. package/dist/gen/model/payroll-au/openingBalances.d.ts +2 -2
  55. package/dist/gen/model/payroll-au/openingBalances.js +1 -1
  56. package/dist/gen/model/payroll-au/openingBalances.js.map +1 -1
  57. package/dist/gen/model/payroll-au/taxDeclaration.d.ts +4 -0
  58. package/dist/gen/model/payroll-au/taxDeclaration.js +5 -0
  59. package/dist/gen/model/payroll-au/taxDeclaration.js.map +1 -1
  60. package/dist/gen/model/{finance/lockHistoryModel.d.ts → payroll-au-v2/invalidField.d.ts} +5 -9
  61. package/dist/gen/model/payroll-au-v2/invalidField.js +23 -0
  62. package/dist/gen/model/payroll-au-v2/invalidField.js.map +1 -0
  63. package/dist/gen/model/payroll-au-v2/models.d.ts +42 -0
  64. package/dist/gen/model/payroll-au-v2/models.js +244 -0
  65. package/dist/gen/model/payroll-au-v2/models.js.map +1 -0
  66. package/dist/gen/model/payroll-au-v2/pagination.d.ts +17 -0
  67. package/dist/gen/model/payroll-au-v2/pagination.js +33 -0
  68. package/dist/gen/model/payroll-au-v2/pagination.js.map +1 -0
  69. package/dist/gen/model/payroll-au-v2/problem.d.ts +35 -0
  70. package/dist/gen/model/payroll-au-v2/problem.js +46 -0
  71. package/dist/gen/model/payroll-au-v2/problem.js.map +1 -0
  72. package/dist/gen/model/payroll-au-v2/timesheet.d.ts +54 -0
  73. package/dist/gen/model/payroll-au-v2/timesheet.js +66 -0
  74. package/dist/gen/model/payroll-au-v2/timesheet.js.map +1 -0
  75. package/dist/gen/model/payroll-au-v2/timesheetLine.d.ts +33 -0
  76. package/dist/gen/model/payroll-au-v2/timesheetLine.js +38 -0
  77. package/dist/gen/model/payroll-au-v2/timesheetLine.js.map +1 -0
  78. package/dist/gen/model/payroll-au-v2/timesheetLineObject.d.ts +19 -0
  79. package/dist/gen/model/payroll-au-v2/timesheetLineObject.js +28 -0
  80. package/dist/gen/model/payroll-au-v2/timesheetLineObject.js.map +1 -0
  81. package/dist/gen/model/payroll-au-v2/timesheetObject.d.ts +19 -0
  82. package/dist/gen/model/payroll-au-v2/timesheetObject.js +28 -0
  83. package/dist/gen/model/payroll-au-v2/timesheetObject.js.map +1 -0
  84. package/dist/gen/model/payroll-au-v2/timesheets.d.ts +19 -0
  85. package/dist/gen/model/payroll-au-v2/timesheets.js +28 -0
  86. package/dist/gen/model/payroll-au-v2/timesheets.js.map +1 -0
  87. package/dist/gen/model/payroll-nz/employeeLeaveSetup.d.ts +0 -8
  88. package/dist/gen/model/payroll-nz/employeeLeaveSetup.js +0 -10
  89. package/dist/gen/model/payroll-nz/employeeLeaveSetup.js.map +1 -1
  90. package/dist/gen/model/payroll-nz/employeeLeaveType.d.ts +1 -5
  91. package/dist/gen/model/payroll-nz/employeeLeaveType.js +1 -6
  92. package/dist/gen/model/payroll-nz/employeeLeaveType.js.map +1 -1
  93. package/package.json +2 -2
  94. package/dist/gen/model/finance/accountUsage.d.ts +0 -65
  95. package/dist/gen/model/finance/accountUsage.js +0 -78
  96. package/dist/gen/model/finance/accountUsage.js.map +0 -1
  97. package/dist/gen/model/finance/accountUsageResponse.d.ts +0 -27
  98. package/dist/gen/model/finance/accountUsageResponse.js +0 -33
  99. package/dist/gen/model/finance/accountUsageResponse.js.map +0 -1
  100. package/dist/gen/model/finance/historyRecordResponse.d.ts +0 -33
  101. package/dist/gen/model/finance/historyRecordResponse.js +0 -38
  102. package/dist/gen/model/finance/historyRecordResponse.js.map +0 -1
  103. package/dist/gen/model/finance/lockHistoryModel.js +0 -28
  104. package/dist/gen/model/finance/lockHistoryModel.js.map +0 -1
  105. package/dist/gen/model/finance/lockHistoryResponse.d.ts +0 -23
  106. package/dist/gen/model/finance/lockHistoryResponse.js +0 -28
  107. package/dist/gen/model/finance/lockHistoryResponse.js.map +0 -1
  108. package/dist/gen/model/finance/practiceResponse.d.ts +0 -33
  109. package/dist/gen/model/finance/practiceResponse.js +0 -38
  110. package/dist/gen/model/finance/practiceResponse.js.map +0 -1
  111. package/dist/gen/model/finance/reportHistoryModel.d.ts +0 -25
  112. package/dist/gen/model/finance/reportHistoryModel.js +0 -28
  113. package/dist/gen/model/finance/reportHistoryModel.js.map +0 -1
  114. package/dist/gen/model/finance/reportHistoryResponse.d.ts +0 -23
  115. package/dist/gen/model/finance/reportHistoryResponse.js +0 -28
  116. package/dist/gen/model/finance/reportHistoryResponse.js.map +0 -1
  117. package/dist/gen/model/finance/userActivitiesResponse.js +0 -28
  118. package/dist/gen/model/finance/userActivitiesResponse.js.map +0 -1
  119. package/dist/gen/model/finance/userResponse.d.ts +0 -57
  120. package/dist/gen/model/finance/userResponse.js +0 -73
  121. package/dist/gen/model/finance/userResponse.js.map +0 -1
@@ -1,76 +1,76 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, sex characteristics, gender identity and expression,
9
- level of experience, education, socio-economic status, nationality, personal
10
- appearance, race, religion, or sexual identity and orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
33
-
34
- ## Our Responsibilities
35
-
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
39
-
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
45
-
46
- ## Scope
47
-
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at api@xero.com. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
63
-
64
- Project maintainers who do not follow or enforce the Code of Conduct in good
65
- faith may face temporary or permanent repercussions as determined by other
66
- members of the project's leadership.
67
-
68
- ## Attribution
69
-
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72
-
73
- [homepage]: https://www.contributor-covenant.org
74
-
75
- For answers to common questions about this code of conduct, see
76
- https://www.contributor-covenant.org/faq
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, sex characteristics, gender identity and expression,
9
+ level of experience, education, socio-economic status, nationality, personal
10
+ appearance, race, religion, or sexual identity and orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at api@xero.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72
+
73
+ [homepage]: https://www.contributor-covenant.org
74
+
75
+ For answers to common questions about this code of conduct, see
76
+ https://www.contributor-covenant.org/faq
package/CONTRIBUTING.md CHANGED
@@ -1,112 +1,112 @@
1
- # Contributing to xero-node
2
- :+1::tada: First off, thanks for taking the time to contribute! :tada::+1:
3
-
4
- We want to make contributing to this project as easy and transparent as possible, whether it's:
5
-
6
- - Reporting a bug
7
- - Discussing the current state of the code
8
- - Submitting a fix
9
- - Proposing new features
10
- - Becoming a maintainer
11
-
12
- The following is a set of guidelines for contributing to Xero and its projects, which are hosted in the [XeroAPI Organization](https://github.com/XeroAPI) on GitHub. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.
13
-
14
- ### Table Of Contents
15
- [Code of Conduct](#code-of-conduct)
16
-
17
- [I don't want to read this whole thing, I just have a question!!!](#i-dont-want-to-read-this-whole-thing-i-just-have-a-question)
18
-
19
- [How Can I Contribute?](#how-can-i-contribute)
20
- * [Which version of SDK are you using?](#Which-version-of-the-SDK-are-you-using)
21
- * [Reporting Bugs](#reporting-bugs)
22
- * [Suggesting Enhancements](#suggesting-enhancements)
23
- * [Pull Requests](#pull-requests)
24
-
25
-
26
- ## Code of Conduct
27
- Please note that this project is released with a [Contributor Code of Conduct](https://github.com/XeroAPI/xero-node/blob/oauth2/CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
28
-
29
- ## I don't want to read this whole thing I just have a question!!!
30
-
31
- > **Note:** Please don't file an issue to ask a question. You'll get faster results by using the resources below.
32
-
33
- We have an official [message board](https://community.xero.com/developer) where Xero API support and the community chimes in with helpful advice if you have questions.
34
-
35
- * [API Documentation](https://developer.xero.com/documentation/)
36
- * [Xero FAQ](https://developer.xero.com/faq)
37
- * [Community, the official Xero message board](https://community.xero.com/developer)
38
- * [Stackoverflow - Xero related](https://stackoverflow.com/questions/tagged/xero-api?sort=Newest)
39
- * [Submit requests for support](https://developer.xero.com/contact-xero-developer-platform-support/) to our API Support team.
40
-
41
- # How Can I Contribute?
42
-
43
- You can contribute by reporting bugs, suggesting enhancements, improving documentation i.e. [README](https://github.com/XeroAPI/xero-node/blob/oauth2/README.md) or submitting a pull request.
44
-
45
-
46
- ## Which version of the SDK are you using?
47
-
48
- As of Sept 2019, support for oAuth 2 will be generally available for developers. During this transition period from oAuth 1.0a to oAuth 2, we will be supporting two versions of the SDK.
49
-
50
-
51
- * 3.x code resides in `oauth1` and supports oAuth 1.0a
52
- * 4.x code resides in the `master` branch and supports oAuth 2
53
-
54
- Bugs and enhancements for version 4.x will be prioritized over 3.x.
55
-
56
- ## Reporting Bugs
57
-
58
- Bugs are tracked as issues in this repository.
59
-
60
- Before opening a new issue:
61
- * **check [the README](https://github.com/XeroAPI/xero-node/blob/oauth2/README.md)** to see if the behavior you observed might be expected and if configuration options are available to provide you with the desired behavior.
62
-
63
- * **perform a cursory search** to see if there's [an existing issue](https://github.com/XeroAPI/xero-node/issues) covering your feedback. If there is one and the issue is still open, **add a :+1: reaction** on the issue to express interest in the issue being resolved. That will help the team gauge interest without the noise of comments which trigger notifications to all watchers. Comments should be used only if you have new and useful information to share.
64
-
65
- ### Write bug reports with detail, background, and sample code
66
-
67
- - Which version of the SDK are you using?
68
- - A quick summary and/or background
69
- - Steps to reproduce
70
- - Be specific!
71
- - Give sample code if you can.
72
- - What you expected would happen
73
- - What actually happens
74
- - Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)
75
-
76
- ## Suggesting Enhancements
77
-
78
- When opening an issue for a feature request:
79
- * **use a clear and descriptive title** for the issue to identify the problem.
80
- * **include as many details as possible in the body**. Explain your use-case, the problems you're hitting and the solutions you'd like to see to address those problems.
81
-
82
- ## Pull requests
83
-
84
- We welcome your feedback and pull requests. Be aware some code is generated and pull requests may not be the best solution - see below.
85
-
86
- ### We Use OpenAPI Generator
87
- The best way to propose changes to the codebase is to open an [issue](https://github.com/XeroAPI/xero-node/issues) and discuss with our team.
88
-
89
- We are using [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) and [our OpenAPI specs](https://github.com/XeroAPI/Xero-OpenAPI), to create and update our models and client classes. Improvements may require updates to our OAS or our customized mustache templates instead of modifying via pull request.
90
-
91
- ### Submit a pull request
92
-
93
- 1. Fork and clone the repository
94
- 1. Create a new branch: `git checkout -b my-branch-name`
95
- 1. Make your change, add tests if needed
96
- 1. Make sure the tests pass on your machine: `mvn test`
97
- 1. Push to your fork and submit a pull request
98
- 1. Pat your self on the back and wait for your pull request to be reviewed and merged.
99
-
100
- Here are a few things you can do that will increase the likelihood of your pull request being accepted:
101
-
102
- - Follow the [style guide](#style-guide).
103
- - Write tests.
104
- - Keep your change as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests.
105
- - Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
106
-
107
- ### Style Guide
108
-
109
- * 4 spaces for indentation rather than tabs
110
-
111
- ## License
112
- By contributing, you agree that your contributions will be licensed under its MIT License.
1
+ # Contributing to xero-node
2
+ :+1::tada: First off, thanks for taking the time to contribute! :tada::+1:
3
+
4
+ We want to make contributing to this project as easy and transparent as possible, whether it's:
5
+
6
+ - Reporting a bug
7
+ - Discussing the current state of the code
8
+ - Submitting a fix
9
+ - Proposing new features
10
+ - Becoming a maintainer
11
+
12
+ The following is a set of guidelines for contributing to Xero and its projects, which are hosted in the [XeroAPI Organization](https://github.com/XeroAPI) on GitHub. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.
13
+
14
+ ### Table Of Contents
15
+ [Code of Conduct](#code-of-conduct)
16
+
17
+ [I don't want to read this whole thing, I just have a question!!!](#i-dont-want-to-read-this-whole-thing-i-just-have-a-question)
18
+
19
+ [How Can I Contribute?](#how-can-i-contribute)
20
+ * [Which version of SDK are you using?](#Which-version-of-the-SDK-are-you-using)
21
+ * [Reporting Bugs](#reporting-bugs)
22
+ * [Suggesting Enhancements](#suggesting-enhancements)
23
+ * [Pull Requests](#pull-requests)
24
+
25
+
26
+ ## Code of Conduct
27
+ Please note that this project is released with a [Contributor Code of Conduct](https://github.com/XeroAPI/xero-node/blob/oauth2/CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
28
+
29
+ ## I don't want to read this whole thing I just have a question!!!
30
+
31
+ > **Note:** Please don't file an issue to ask a question. You'll get faster results by using the resources below.
32
+
33
+ We have an official [message board](https://community.xero.com/developer) where Xero API support and the community chimes in with helpful advice if you have questions.
34
+
35
+ * [API Documentation](https://developer.xero.com/documentation/)
36
+ * [Xero FAQ](https://developer.xero.com/faq)
37
+ * [Community, the official Xero message board](https://community.xero.com/developer)
38
+ * [Stackoverflow - Xero related](https://stackoverflow.com/questions/tagged/xero-api?sort=Newest)
39
+ * [Submit requests for support](https://developer.xero.com/contact-xero-developer-platform-support/) to our API Support team.
40
+
41
+ # How Can I Contribute?
42
+
43
+ You can contribute by reporting bugs, suggesting enhancements, improving documentation i.e. [README](https://github.com/XeroAPI/xero-node/blob/oauth2/README.md) or submitting a pull request.
44
+
45
+
46
+ ## Which version of the SDK are you using?
47
+
48
+ As of Sept 2019, support for oAuth 2 will be generally available for developers. During this transition period from oAuth 1.0a to oAuth 2, we will be supporting two versions of the SDK.
49
+
50
+
51
+ * 3.x code resides in `oauth1` and supports oAuth 1.0a
52
+ * 4.x code resides in the `master` branch and supports oAuth 2
53
+
54
+ Bugs and enhancements for version 4.x will be prioritized over 3.x.
55
+
56
+ ## Reporting Bugs
57
+
58
+ Bugs are tracked as issues in this repository.
59
+
60
+ Before opening a new issue:
61
+ * **check [the README](https://github.com/XeroAPI/xero-node/blob/oauth2/README.md)** to see if the behavior you observed might be expected and if configuration options are available to provide you with the desired behavior.
62
+
63
+ * **perform a cursory search** to see if there's [an existing issue](https://github.com/XeroAPI/xero-node/issues) covering your feedback. If there is one and the issue is still open, **add a :+1: reaction** on the issue to express interest in the issue being resolved. That will help the team gauge interest without the noise of comments which trigger notifications to all watchers. Comments should be used only if you have new and useful information to share.
64
+
65
+ ### Write bug reports with detail, background, and sample code
66
+
67
+ - Which version of the SDK are you using?
68
+ - A quick summary and/or background
69
+ - Steps to reproduce
70
+ - Be specific!
71
+ - Give sample code if you can.
72
+ - What you expected would happen
73
+ - What actually happens
74
+ - Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)
75
+
76
+ ## Suggesting Enhancements
77
+
78
+ When opening an issue for a feature request:
79
+ * **use a clear and descriptive title** for the issue to identify the problem.
80
+ * **include as many details as possible in the body**. Explain your use-case, the problems you're hitting and the solutions you'd like to see to address those problems.
81
+
82
+ ## Pull requests
83
+
84
+ We welcome your feedback and pull requests. Be aware some code is generated and pull requests may not be the best solution - see below.
85
+
86
+ ### We Use OpenAPI Generator
87
+ The best way to propose changes to the codebase is to open an [issue](https://github.com/XeroAPI/xero-node/issues) and discuss with our team.
88
+
89
+ We are using [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) and [our OpenAPI specs](https://github.com/XeroAPI/Xero-OpenAPI), to create and update our models and client classes. Improvements may require updates to our OAS or our customized mustache templates instead of modifying via pull request.
90
+
91
+ ### Submit a pull request
92
+
93
+ 1. Fork and clone the repository
94
+ 1. Create a new branch: `git checkout -b my-branch-name`
95
+ 1. Make your change, add tests if needed
96
+ 1. Make sure the tests pass on your machine: `mvn test`
97
+ 1. Push to your fork and submit a pull request
98
+ 1. Pat your self on the back and wait for your pull request to be reviewed and merged.
99
+
100
+ Here are a few things you can do that will increase the likelihood of your pull request being accepted:
101
+
102
+ - Follow the [style guide](#style-guide).
103
+ - Write tests.
104
+ - Keep your change as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests.
105
+ - Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
106
+
107
+ ### Style Guide
108
+
109
+ * 4 spaces for indentation rather than tabs
110
+
111
+ ## License
112
+ By contributing, you agree that your contributions will be licensed under its MIT License.
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2019 Xero
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Xero
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.