Skip to content

Commit

Permalink
Merge branch 'release/1.26.9.70'
Browse files Browse the repository at this point in the history
  • Loading branch information
bunq-bot committed Nov 28, 2024
2 parents 5f20eb5 + 1a96125 commit b3d9379
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 64 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ public class CompanyEmployeeCard extends BunqModel {
/**
* Field constants.
*/
public static final String FIELD_ALIAS = "alias";
public static final String FIELD_POINTER_COUNTER_USER = "pointer_counter_user";
public static final String FIELD_POINTER_MONETARY_ACCOUNT = "pointer_monetary_account";
public static final String FIELD_TYPE = "type";
public static final String FIELD_PRODUCT_TYPE = "product_type";
public static final String FIELD_COMPANY_NAME_ON_CARD = "company_name_on_card";
Expand All @@ -36,13 +37,6 @@ public class CompanyEmployeeCard extends BunqModel {
@SerializedName("card")
private Card card;

/**
* The id of the relation user.
*/
@Expose
@SerializedName("relation_user_id")
private Integer relationUserId;

/**
* The status of the employee card.
*/
Expand Down Expand Up @@ -71,12 +65,26 @@ public class CompanyEmployeeCard extends BunqModel {
@SerializedName("amount_spent_monthly")
private Amount amountSpentMonthly;

/**
* The number of transactions that still need a receipt.
*/
@Expose
@SerializedName("number_of_company_employee_card_receipt_pending")
private Integer numberOfCompanyEmployeeCardReceiptPending;

/**
* The pointer to the employee for which you want to create a card.
*/
@Expose
@SerializedName("pointer_counter_user_field_for_request")
private Pointer pointerCounterUserFieldForRequest;

/**
* The pointer to the monetary account that will be connected at first with the card.
*/
@Expose
@SerializedName("alias_field_for_request")
private Pointer aliasFieldForRequest;
@SerializedName("pointer_monetary_account_field_for_request")
private Pointer pointerMonetaryAccountFieldForRequest;

/**
* The type of card to order.
Expand Down Expand Up @@ -128,39 +136,44 @@ public class CompanyEmployeeCard extends BunqModel {
private String statusFieldForRequest;

public CompanyEmployeeCard() {
this(null, null, null, null, null, null, null, null);
this(null, null, null, null, null, null, null, null, null);
}

public CompanyEmployeeCard(Pointer alias) {
this(alias, null, null, null, null, null, null, null);
public CompanyEmployeeCard(Pointer pointerCounterUser) {
this(pointerCounterUser, null, null, null, null, null, null, null, null);
}

public CompanyEmployeeCard(Pointer alias, String type) {
this(alias, type, null, null, null, null, null, null);
public CompanyEmployeeCard(Pointer pointerCounterUser, Pointer pointerMonetaryAccount) {
this(pointerCounterUser, pointerMonetaryAccount, null, null, null, null, null, null, null);
}

public CompanyEmployeeCard(Pointer alias, String type, String productType) {
this(alias, type, productType, null, null, null, null, null);
public CompanyEmployeeCard(Pointer pointerCounterUser, Pointer pointerMonetaryAccount, String type) {
this(pointerCounterUser, pointerMonetaryAccount, type, null, null, null, null, null, null);
}

public CompanyEmployeeCard(Pointer alias, String type, String productType, String companyNameOnCard) {
this(alias, type, productType, companyNameOnCard, null, null, null, null);
public CompanyEmployeeCard(Pointer pointerCounterUser, Pointer pointerMonetaryAccount, String type, String productType) {
this(pointerCounterUser, pointerMonetaryAccount, type, productType, null, null, null, null, null);
}

public CompanyEmployeeCard(Pointer alias, String type, String productType, String companyNameOnCard, String employeeNameOnCard) {
this(alias, type, productType, companyNameOnCard, employeeNameOnCard, null, null, null);
public CompanyEmployeeCard(Pointer pointerCounterUser, Pointer pointerMonetaryAccount, String type, String productType, String companyNameOnCard) {
this(pointerCounterUser, pointerMonetaryAccount, type, productType, companyNameOnCard, null, null, null, null);
}

public CompanyEmployeeCard(Pointer alias, String type, String productType, String companyNameOnCard, String employeeNameOnCard, String employeePreferredNameOnCard) {
this(alias, type, productType, companyNameOnCard, employeeNameOnCard, employeePreferredNameOnCard, null, null);
public CompanyEmployeeCard(Pointer pointerCounterUser, Pointer pointerMonetaryAccount, String type, String productType, String companyNameOnCard, String employeeNameOnCard) {
this(pointerCounterUser, pointerMonetaryAccount, type, productType, companyNameOnCard, employeeNameOnCard, null, null, null);
}

public CompanyEmployeeCard(Pointer alias, String type, String productType, String companyNameOnCard, String employeeNameOnCard, String employeePreferredNameOnCard, Amount amountLimitMonthly) {
this(alias, type, productType, companyNameOnCard, employeeNameOnCard, employeePreferredNameOnCard, amountLimitMonthly, null);
public CompanyEmployeeCard(Pointer pointerCounterUser, Pointer pointerMonetaryAccount, String type, String productType, String companyNameOnCard, String employeeNameOnCard, String employeePreferredNameOnCard) {
this(pointerCounterUser, pointerMonetaryAccount, type, productType, companyNameOnCard, employeeNameOnCard, employeePreferredNameOnCard, null, null);
}

public CompanyEmployeeCard(Pointer alias, String type, String productType, String companyNameOnCard, String employeeNameOnCard, String employeePreferredNameOnCard, Amount amountLimitMonthly, String status) {
this.aliasFieldForRequest = alias;
public CompanyEmployeeCard(Pointer pointerCounterUser, Pointer pointerMonetaryAccount, String type, String productType, String companyNameOnCard, String employeeNameOnCard, String employeePreferredNameOnCard, Amount amountLimitMonthly) {
this(pointerCounterUser, pointerMonetaryAccount, type, productType, companyNameOnCard, employeeNameOnCard, employeePreferredNameOnCard, amountLimitMonthly, null);
}

public CompanyEmployeeCard(Pointer pointerCounterUser, Pointer pointerMonetaryAccount, String type, String productType, String companyNameOnCard, String employeeNameOnCard, String employeePreferredNameOnCard, Amount amountLimitMonthly, String status) {
this.pointerCounterUserFieldForRequest = pointerCounterUser;
this.pointerMonetaryAccountFieldForRequest = pointerMonetaryAccount;
this.typeFieldForRequest = type;
this.productTypeFieldForRequest = productType;
this.companyNameOnCardFieldForRequest = companyNameOnCard;
Expand All @@ -181,17 +194,6 @@ public void setCard(Card card) {
this.card = card;
}

/**
* The id of the relation user.
*/
public Integer getRelationUserId() {
return this.relationUserId;
}

public void setRelationUserId(Integer relationUserId) {
this.relationUserId = relationUserId;
}

/**
* The status of the employee card.
*/
Expand Down Expand Up @@ -236,17 +238,24 @@ public void setAmountSpentMonthly(Amount amountSpentMonthly) {
this.amountSpentMonthly = amountSpentMonthly;
}

/**
* The number of transactions that still need a receipt.
*/
public Integer getNumberOfCompanyEmployeeCardReceiptPending() {
return this.numberOfCompanyEmployeeCardReceiptPending;
}

public void setNumberOfCompanyEmployeeCardReceiptPending(Integer numberOfCompanyEmployeeCardReceiptPending) {
this.numberOfCompanyEmployeeCardReceiptPending = numberOfCompanyEmployeeCardReceiptPending;
}

/**
*/
public boolean isAllFieldNull() {
if (this.card != null) {
return false;
}

if (this.relationUserId != null) {
return false;
}

if (this.status != null) {
return false;
}
Expand All @@ -263,6 +272,10 @@ public boolean isAllFieldNull() {
return false;
}

if (this.numberOfCompanyEmployeeCardReceiptPending != null) {
return false;
}

return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,6 @@ public class RelationUser extends BunqModel {
@SerializedName("all_company_employee_card")
private List<CompanyEmployeeCard> allCompanyEmployeeCard;

/**
* The number of transactions that still need a receipt.
*/
@Expose
@SerializedName("number_of_company_employee_card_receipt_pending")
private Integer numberOfCompanyEmployeeCardReceiptPending;

/**
* The user's ID.
*/
Expand Down Expand Up @@ -204,17 +197,6 @@ public void setAllCompanyEmployeeCard(List<CompanyEmployeeCard> allCompanyEmploy
this.allCompanyEmployeeCard = allCompanyEmployeeCard;
}

/**
* The number of transactions that still need a receipt.
*/
public Integer getNumberOfCompanyEmployeeCardReceiptPending() {
return this.numberOfCompanyEmployeeCardReceiptPending;
}

public void setNumberOfCompanyEmployeeCardReceiptPending(Integer numberOfCompanyEmployeeCardReceiptPending) {
this.numberOfCompanyEmployeeCardReceiptPending = numberOfCompanyEmployeeCardReceiptPending;
}

/**
*/
public boolean isAllFieldNull() {
Expand Down Expand Up @@ -258,10 +240,6 @@ public boolean isAllFieldNull() {
return false;
}

if (this.numberOfCompanyEmployeeCardReceiptPending != null) {
return false;
}

return true;
}

Expand Down

0 comments on commit b3d9379

Please sign in to comment.