Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.

Commit f1f6c5a

Browse files
committed
Merge pull request #160 from tamaw/FixBSB
Changed account number, BSB and ABN to type string.
2 parents 6657223 + 99c52fa commit f1f6c5a

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

PayrollTests.AU/Integration/Employees/Create.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public void create_employee()
3030
{
3131
AccountName = "Cheque",
3232
AccountNumber = "645645645",
33-
BankStateBranch = 121232,
33+
BankStateBranch = "021232",
3434
Remainder = true,
3535
StatementText = "Salary"
3636
}

PayrollTests.AU/Integration/Employees/EmployeesTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ protected Guid super_fund_id()
6060
return Api.Create(new SuperFund
6161
{
6262
Type = SuperfundType.Regulated,
63-
Abn = 78984178687,
63+
Abn = "78984178687",
6464
}).Id;
6565
}
6666
}

PayrollTests.AU/Integration/SuperFunds/Create.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public void create_superfund()
1717
var sf = Api.Create(new SuperFund
1818
{
1919
Type = SuperfundType.Regulated,
20-
Abn = 78984178687,
20+
Abn = "08984178687",
2121
});
2222

2323
Assert.IsTrue(sf.Id != Guid.Empty);

PayrollTests.AU/Integration/SuperFunds/Update.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@ public void update_superfund()
1414
var sf = Api.Create(new SuperFund
1515
{
1616
Type = SuperfundType.SelfManaged,
17-
Abn = 11001032511,
17+
Abn = "01001032511",
1818
Name = "Clive Monk Superannuation Fund",
19-
BankStateBranch = 159357,
19+
BankStateBranch = "159357",
2020
AccountName = "Clive Monk Superannuation Fund",
21-
AccountNumber = 111222333,
21+
AccountNumber = "111222333",
2222
});
2323

2424

2525
var updated_superfund = Api.Update(new SuperFund
2626
{
2727
Id = sf.Id,
2828
Type = SuperfundType.SelfManaged,
29-
Abn = 11001032511,
29+
Abn = "11001032511",
3030
Name = "Clive Superannuation Fund",
31-
BankStateBranch = 159357,
31+
BankStateBranch = "059357",
3232
AccountName = "Test",
33-
AccountNumber = 654645645,
33+
AccountNumber = "654645645",
3434
});
3535

3636
}

Xero.Api/Payroll/Australia/Model/BankAccount.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class BankAccount
1212
public string AccountName { get; set; }
1313

1414
[DataMember(Name = "BSB")]
15-
public int BankStateBranch { get; set; }
15+
public string BankStateBranch { get; set; }
1616

1717
[DataMember]
1818
public string AccountNumber { get; set; }

Xero.Api/Payroll/Australia/Model/SuperFund.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class SuperFund : HasUpdatedDate
1313

1414
[DataMember(Name = "ABN")]
1515
// Australian Business Number
16-
public long Abn { get; set; }
16+
public string Abn { get; set; }
1717

1818
[DataMember(Name = "SPIN")]
1919
// Superannuation Product Identification Number
@@ -30,13 +30,13 @@ public class SuperFund : HasUpdatedDate
3030
public string AccountName { get; set; }
3131

3232
[DataMember]
33-
public long AccountNumber { get; set; }
33+
public string AccountNumber { get; set; }
3434

3535
[DataMember(Name ="BSB")]
36-
public int BankStateBranch { get; set; }
36+
public string BankStateBranch { get; set; }
3737

3838
[DataMember]
39-
public long EmployerNumber { get; set; }
39+
public string EmployerNumber { get; set; }
4040

4141
[DataMember]
4242
public string ElectronicServiceAddress { get; set; }

Xero.Api/Payroll/Australia/Model/SuperFundProduct.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class SuperFundProduct : HasUpdatedDate
88
{
99
[DataMember(Name = "ABN")]
1010
// Australian Business Number
11-
public long Abn { get; set; }
11+
public string Abn { get; set; }
1212

1313
[DataMember(Name = "SPIN")]
1414
// Superannuation Product Identification Number

0 commit comments

Comments
 (0)