Skip to content

Commit 958acd3

Browse files
Merge pull request #751 from GeorgeBills/master
PAT-2140: Remove PUT for NZ and UK pay runs.
2 parents 15f1045 + 453e4cd commit 958acd3

File tree

2 files changed

+1
-373
lines changed

2 files changed

+1
-373
lines changed

xero-payroll-nz.yaml

Lines changed: 0 additions & 226 deletions
Original file line numberDiff line numberDiff line change
@@ -5198,232 +5198,6 @@ paths:
51985198
paymentMethod: Electronically
51995199
payslipMessage: null
52005200
invalidPayeeIDs: null
5201-
put:
5202-
security:
5203-
- OAuth2:
5204-
- payroll.payruns
5205-
tags:
5206-
- PayrollNz
5207-
operationId: updatePayRun
5208-
x-hasPayrollUkProblem: true
5209-
x-example:
5210-
- startDateValue:
5211-
key: startDate
5212-
keyPascal: StartDate
5213-
keySnake: start_date
5214-
is_date: true
5215-
java_datatype: LocalDate
5216-
csharp_datatype: DateTime
5217-
default: LocalDate.of(2020, Month.OCTOBER, 28)
5218-
java: LocalDate.of(2020, Month.OCTOBER, 28)
5219-
csharp: new DateTime(2020, 10, 10)
5220-
php: new DateTime('2020-10-28')
5221-
node: '''2020-10-28'''
5222-
python: dateutil.parser.parse('2020-10-28T00:00:00Z')
5223-
ruby: '''YYYY-MM-DD'''
5224-
- paymentDateValue:
5225-
key: paymentDate
5226-
keyPascal: PaymentDate
5227-
keySnake: payment_date
5228-
is_date: true
5229-
java_datatype: LocalDate
5230-
csharp_datatype: DateTime
5231-
default: LocalDate.of(2020, Month.OCTOBER, 30)
5232-
java: LocalDate.of(2020, Month.OCTOBER, 30)
5233-
csharp: new DateTime(2020, 10, 12)
5234-
php: new DateTime('2020-10-30')
5235-
node: '''2020-10-30'''
5236-
python: dateutil.parser.parse('2020-10-30T00:00:00Z')
5237-
ruby: '''YYYY-MM-DD'''
5238-
- payRunCalendar:
5239-
key: payRunCalendar
5240-
keyPascal: PayRunCalendar
5241-
keySnake: pay_run_calendar
5242-
is_object: true
5243-
- calendarType:
5244-
key: calendarType
5245-
keyPascal: CalendarType
5246-
keySnake: calendar_type
5247-
nonString: true
5248-
default: CalendarType.Weekly
5249-
php: XeroAPI\XeroPHP\Models\PayrollNz\CalendarType.WEEKLY
5250-
node: CalendarType.Weekly
5251-
ruby: XeroRuby::PayrollNz::calendar_type::WEEKLY
5252-
python: calendar_type.WEEKLY
5253-
java: com.xero.models.payrollnz.CalendarType.WEEKLY
5254-
csharp: CalendarType.Weekly
5255-
object: payRunCalendar
5256-
- periodStartDate:
5257-
key: periodStartDate
5258-
keyPascal: PeriodStartDate
5259-
keySnake: period_start_date
5260-
is_variable: true
5261-
nonString: true
5262-
default: startDate
5263-
python: start_date
5264-
ruby: start_date
5265-
object: payRunCalendar
5266-
- paymentDate:
5267-
key: paymentDate
5268-
keyPascal: PaymentDate
5269-
keySnake: payment_date
5270-
is_last: true
5271-
is_variable: true
5272-
nonString: true
5273-
default: paymentDate
5274-
python: payment_date
5275-
ruby: payment_date
5276-
object: payRunCalendar
5277-
summary: Updates a pay run
5278-
parameters:
5279-
- $ref: '#/components/parameters/idempotencyKey'
5280-
- in: path
5281-
name: PayRunID
5282-
x-snake: pay_run_id
5283-
required: true
5284-
description: Identifier for the pay run
5285-
schema:
5286-
type: string
5287-
format: uuid
5288-
responses:
5289-
"200":
5290-
description: search results matching criteria
5291-
content:
5292-
application/json:
5293-
schema:
5294-
$ref: '#/components/schemas/PayRunObject'
5295-
example:
5296-
id: 00000000-0000-0000-0000-000000000000
5297-
providerName: provider-name
5298-
dateTimeUTC: 2020-09-10T17:38:14.8294283
5299-
httpStatusCode: OK
5300-
pagination: null
5301-
problem: null
5302-
payRun:
5303-
payRunID: 8ba9831d-38e4-43d4-808e-472a5d195bce
5304-
payrollCalendarID: 9aa56064-990f-4ad3-a189-d966d8f6a030
5305-
periodStartDate: 2019-06-10T00:00:00
5306-
periodEndDate: 2019-06-16T00:00:00
5307-
paymentDate: 2019-07-01T00:00:00
5308-
totalCost: 9806.03
5309-
totalPay: 6362.53
5310-
payRunStatus: Draft
5311-
payRunType: Scheduled
5312-
calendarType: Weekly
5313-
postedDateTime: null
5314-
paySlips:
5315-
- paySlipID: 51a01760-cf9d-4ba1-bf3a-2065d4f8e073
5316-
employeeID: 68342973-c405-4b86-b5d3-d7b877c27995
5317-
lastEdited: 2020-09-10T17:20:23
5318-
firstName: Tony
5319-
lastName: Starkwpjgdjxdvwson
5320-
totalEarnings: 3628.8
5321-
grossEarnings: 3628.8
5322-
totalPay: 2362.72
5323-
totalEmployerTaxes: 18.9
5324-
totalEmployeeTaxes: 1057.22
5325-
totalDeductions: 100
5326-
totalReimbursements: 0
5327-
totalStatutoryDeductions: 108.86
5328-
totalSuperannuation: 108.86
5329-
bacsHash: null
5330-
paymentMethod: Electronically
5331-
- paySlipID: 499bb866-40fd-44ea-a2d9-91e79e5ac08e
5332-
employeeID: 1c4f0c92-03ad-43f2-a690-ee51397ece6a
5333-
lastEdited: 2019-09-24T03:14:29
5334-
firstName: GST
5335-
lastName: Contractor
5336-
totalEarnings: 800
5337-
grossEarnings: 800
5338-
totalPay: 760
5339-
totalEmployerTaxes: 0
5340-
totalEmployeeTaxes: 160
5341-
totalDeductions: 0
5342-
totalReimbursements: 120
5343-
totalStatutoryDeductions: 0
5344-
totalSuperannuation: 0
5345-
bacsHash: null
5346-
paymentMethod: Electronically
5347-
- paySlipID: f98b6411-7755-41f7-8d89-a3475eadf866
5348-
employeeID: 2e63a4ff-e911-44fc-8290-a65ec7299b30
5349-
lastEdited: 2019-09-24T03:14:06
5350-
firstName: Dairy
5351-
lastName: Milker
5352-
totalEarnings: 1353.85
5353-
grossEarnings: 1353.85
5354-
totalPay: 726.83
5355-
totalEmployerTaxes: 22.11
5356-
totalEmployeeTaxes: 290.97
5357-
totalDeductions: 200
5358-
totalReimbursements: 21.33
5359-
totalStatutoryDeductions: 157.38
5360-
totalSuperannuation: 67.69
5361-
bacsHash: null
5362-
paymentMethod: Electronically
5363-
- paySlipID: 0923bc21-900e-4660-b37c-127c59bd4b12
5364-
employeeID: 9126967a-99a1-4b46-a0f3-43e28737756e
5365-
lastEdited: 2019-09-24T03:14:15
5366-
firstName: General
5367-
lastName: Manager
5368-
totalEarnings: 1730.77
5369-
grossEarnings: 1730.77
5370-
totalPay: 1151.71
5371-
totalEmployerTaxes: 22.77
5372-
totalEmployeeTaxes: 410.6
5373-
totalDeductions: 30
5374-
totalReimbursements: 0
5375-
totalStatutoryDeductions: 138.46
5376-
totalSuperannuation: 69.23
5377-
bacsHash: null
5378-
paymentMethod: Electronically
5379-
- paySlipID: df88d132-3cd6-43f3-8c4a-28ca53406138
5380-
employeeID: ae679eeb-8708-4e3b-afe9-2de117a7f68f
5381-
lastEdited: 2019-09-24T03:18:06
5382-
firstName: Part-time
5383-
lastName: Worker
5384-
totalEarnings: 450
5385-
grossEarnings: 450
5386-
totalPay: 339.45
5387-
totalEmployerTaxes: 2.27
5388-
totalEmployeeTaxes: 66.15
5389-
totalDeductions: 0
5390-
totalReimbursements: 0
5391-
totalStatutoryDeductions: 44.4
5392-
totalSuperannuation: 13.5
5393-
bacsHash: null
5394-
paymentMethod: Electronically
5395-
- paySlipID: ae8d94e8-c30f-4b19-88df-a68c1bda2b90
5396-
employeeID: 45e50e4b-7979-4d3b-b943-8c4f0cb9df3d
5397-
lastEdited: 2019-09-24T03:18:25
5398-
firstName: Permanent
5399-
lastName: Worker
5400-
totalEarnings: 1400
5401-
grossEarnings: 1400
5402-
totalPay: 1021.82
5403-
totalEmployerTaxes: 13.86
5404-
totalEmployeeTaxes: 300.18
5405-
totalDeductions: 22
5406-
totalReimbursements: 0
5407-
totalStatutoryDeductions: 56
5408-
totalSuperannuation: 42
5409-
bacsHash: null
5410-
paymentMethod: Electronically
5411-
payslipMessage: null
5412-
invalidPayeeIDs: null
5413-
"400":
5414-
description: validation error for a bad request
5415-
content:
5416-
application/json:
5417-
schema:
5418-
$ref: '#/components/schemas/Problem'
5419-
requestBody:
5420-
required: true
5421-
content:
5422-
application/json:
5423-
schema:
5424-
$ref: '#/components/schemas/PayRun'
5425-
example:
5426-
paymentDate: "2019-07-01"
54275201
/PaySlips:
54285202
parameters:
54295203
- $ref: '#/components/parameters/requiredHeader'

xero-payroll-uk.yaml

Lines changed: 1 addition & 147 deletions
Original file line numberDiff line numberDiff line change
@@ -5123,152 +5123,6 @@ paths:
51235123
paymentMethod: null
51245124
payslipMessage: null
51255125
invalidPayeeIDs: null
5126-
put:
5127-
security:
5128-
- OAuth2:
5129-
- payroll.payruns
5130-
tags:
5131-
- PayrollUk
5132-
operationId: updatePayRun
5133-
x-hasPayrollUkProblem: true
5134-
x-example:
5135-
- startDateValue:
5136-
key: startDate
5137-
keyPascal: StartDate
5138-
keySnake: start_date
5139-
is_date: true
5140-
java_datatype: LocalDate
5141-
csharp_datatype: DateTime
5142-
default: LocalDate.of(2020, Month.OCTOBER, 28)
5143-
java: LocalDate.of(2020, Month.OCTOBER, 28)
5144-
csharp: new DateTime(2020, 10, 10)
5145-
php: new DateTime('2020-10-28')
5146-
node: '''2020-10-28'''
5147-
python: dateutil.parser.parse('2020-10-28T00:00:00Z')
5148-
ruby: '''YYYY-MM-DD'''
5149-
- paymentDateValue:
5150-
key: paymentDate
5151-
keyPascal: PaymentDate
5152-
keySnake: payment_date
5153-
is_date: true
5154-
java_datatype: LocalDate
5155-
csharp_datatype: DateTime
5156-
default: LocalDate.of(2020, Month.OCTOBER, 30)
5157-
java: LocalDate.of(2020, Month.OCTOBER, 30)
5158-
csharp: new DateTime(2020, 10, 12)
5159-
php: new DateTime('2020-10-30')
5160-
node: '''2020-10-30'''
5161-
python: dateutil.parser.parse('2020-10-30T00:00:00Z')
5162-
ruby: '''YYYY-MM-DD'''
5163-
- payRunCalendar:
5164-
key: payRunCalendar
5165-
keyPascal: PayRunCalendar
5166-
keySnake: pay_run_calendar
5167-
is_object: true
5168-
- calendarType:
5169-
key: calendarType
5170-
keyPascal: CalendarType
5171-
keySnake: calendar_type
5172-
nonString: true
5173-
default: CalendarType.Weekly
5174-
php: XeroAPI\XeroPHP\Models\PayrollUk\CalendarType.WEEKLY
5175-
node: CalendarType.Weekly
5176-
ruby: XeroRuby::PayrollUk::calendar_type::WEEKLY
5177-
python: calendar_type.WEEKLY
5178-
java: com.xero.models.payrolluk.CalendarType.WEEKLY
5179-
csharp: CalendarType.Weekly
5180-
object: payRunCalendar
5181-
- periodStartDate:
5182-
key: periodStartDate
5183-
keyPascal: PeriodStartDate
5184-
keySnake: period_start_date
5185-
is_variable: true
5186-
nonString: true
5187-
default: startDate
5188-
python: start_date
5189-
ruby: start_date
5190-
object: payRunCalendar
5191-
- paymentDate:
5192-
key: paymentDate
5193-
keyPascal: PaymentDate
5194-
keySnake: payment_date
5195-
is_last: true
5196-
is_variable: true
5197-
nonString: true
5198-
default: paymentDate
5199-
python: payment_date
5200-
ruby: payment_date
5201-
object: payRunCalendar
5202-
summary: Updates a specific pay run
5203-
parameters:
5204-
- $ref: '#/components/parameters/idempotencyKey'
5205-
- in: path
5206-
name: PayRunID
5207-
x-snake: pay_run_id
5208-
required: true
5209-
description: Identifier for the pay run
5210-
schema:
5211-
type: string
5212-
format: uuid
5213-
responses:
5214-
"200":
5215-
description: search results matching criteria
5216-
content:
5217-
application/json:
5218-
schema:
5219-
$ref: '#/components/schemas/PayRunObject'
5220-
example:
5221-
id: f567524d-34d6-412b-97e3-f97152c1bbc2
5222-
providerName: provider-name
5223-
dateTimeUTC: 2020-06-03T18:33:25.3607921
5224-
httpStatusCode: OK
5225-
pagination: null
5226-
problem: null
5227-
payRun:
5228-
payRunID: e0a59d82-6229-4be4-9d66-49891b4d933e
5229-
payrollCalendarID: 216d80e6-af55-47b1-b718-9457c3f5d2fe
5230-
periodStartDate: 2020-02-03T00:00:00
5231-
periodEndDate: 2020-02-09T00:00:00
5232-
paymentDate: 2020-05-01T00:00:00
5233-
totalCost: 523.79
5234-
totalPay: 445.04
5235-
payRunStatus: Draft
5236-
payRunType: Scheduled
5237-
calendarType: Weekly
5238-
postedDateTime: null
5239-
paySlips:
5240-
- paySlipID: ed3fb9b3-e9a1-44fa-a224-8be49facbbe8
5241-
employeeID: aad6b292-7b94-408b-93f6-e489867e3fb0
5242-
lastEdited: null
5243-
firstName: Mike
5244-
lastName: Johncfvhitgezvson
5245-
totalEarnings: 480.77
5246-
grossEarnings: 480.77
5247-
totalPay: 445.04
5248-
totalEmployerTaxes: 43.02
5249-
totalEmployeeTaxes: 35.73
5250-
totalDeductions: 0
5251-
totalReimbursements: 0
5252-
totalCourtOrders: 0
5253-
totalBenefits: 0
5254-
bacsHash: null
5255-
paymentMethod: Electronically
5256-
payslipMessage: null
5257-
invalidPayeeIDs: null
5258-
"400":
5259-
description: validation error for a bad request
5260-
content:
5261-
application/json:
5262-
schema:
5263-
$ref: '#/components/schemas/Problem'
5264-
requestBody:
5265-
required: true
5266-
content:
5267-
application/json:
5268-
schema:
5269-
$ref: '#/components/schemas/PayRun'
5270-
example:
5271-
paymentDate: "2020-05-01"
52725126
/Payslips:
52735127
parameters:
52745128
- $ref: '#/components/parameters/requiredHeader'
@@ -7683,4 +7537,4 @@ components:
76837537
properties:
76847538
niCategory:
76857539
enum:
7686-
- V
7540+
- V

0 commit comments

Comments
 (0)