Skip to content

Commit

Permalink
Merge pull request #425 from kontist/COM-167-update-user-tax-details
Browse files Browse the repository at this point in the history
COM-167 Update user tax details
  • Loading branch information
sinahashemy authored Jan 9, 2024
2 parents 21a1acb + a508e24 commit 853f853
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 0 deletions.
48 changes: 48 additions & 0 deletions lib/graphql/schema.flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -1554,6 +1554,8 @@ export type Mutation = {|
createDraftTransaction: CreateDraftTransactionResponse,
/** The logo a user can add to his invoice. The path to it is stored in invoiceSettings */
createInvoiceLogo: CreateInvoiceLogoResponse,
/** Create an OCR Asset and obtain an upload config */
createOCRAsset: CreateAssetResponse,
createQuestionnaireDocumentAsset: CreateAssetResponse,
createReview: CreateReviewResponse,
/** Create user's taxNumber */
Expand Down Expand Up @@ -1605,6 +1607,8 @@ export type Mutation = {|
duplicateInvoice: InvoiceOutput,
/** Exit business asset */
exitBusinessAsset: MutationResult,
/** Performs OCR on the asset and extracts data */
extractOCRData?: ?OcrResult,
/** Confirm and validate an Asset upload as completed */
finalizeAssetUpload: Asset,
finalizeTaxCase: TaxCase,
Expand Down Expand Up @@ -1893,6 +1897,7 @@ export type MutationCreateDatevExportArgs = {|


export type MutationCreateDeviceBindingRequestArgs = {|
deviceId?: ?$ElementType<Scalars, 'String'>,
deviceName: $ElementType<Scalars, 'String'>,
|};

Expand All @@ -1907,6 +1912,12 @@ export type MutationCreateInvoiceLogoArgs = {|
|};


export type MutationCreateOcrAssetArgs = {|
filetype: $ElementType<Scalars, 'String'>,
name: $ElementType<Scalars, 'String'>,
|};


export type MutationCreateQuestionnaireDocumentAssetArgs = {|
filetype: $ElementType<Scalars, 'String'>,
name: $ElementType<Scalars, 'String'>,
Expand Down Expand Up @@ -2071,6 +2082,11 @@ export type MutationExitBusinessAssetArgs = {|
|};


export type MutationExtractOcrDataArgs = {|
assetId: $ElementType<Scalars, 'String'>,
|};


export type MutationFinalizeAssetUploadArgs = {|
assetId: $ElementType<Scalars, 'ID'>,
|};
Expand Down Expand Up @@ -2676,6 +2692,14 @@ export const NotificationTypeValues = Object.freeze({

export type NotificationType = $Values<typeof NotificationTypeValues>;

export type OcrResult = {|
__typename?: 'OCRResult',
amount?: ?$ElementType<Scalars, 'Int'>,
description?: ?$ElementType<Scalars, 'String'>,
iban?: ?$ElementType<Scalars, 'String'>,
name?: ?$ElementType<Scalars, 'String'>,
|};

export type Overdraft = {|
__typename?: 'Overdraft',
id: $ElementType<Scalars, 'String'>,
Expand Down Expand Up @@ -4636,6 +4660,8 @@ export type UserTaxDetails = {|
taxNumber?: ?$ElementType<Scalars, 'String'>,
taxPaymentFrequency?: ?TaxPaymentFrequency,
taxRate?: ?$ElementType<Scalars, 'Int'>,
vatExemptionWithItd?: ?VatExemptionWithItd,
vatExemptionWithoutItd?: ?VatExemptionWithoutItd,
vatNumber?: ?$ElementType<Scalars, 'String'>,
vatPaymentFrequency?: ?PaymentFrequency,
vatRate?: ?UserVatRate,
Expand All @@ -4651,6 +4677,8 @@ export type UserTaxDetailsInput = {|
permanentExtensionStatus?: ?PermanentExtensionStatus,
personalTaxNumber?: ?$ElementType<Scalars, 'String'>,
taxNumber?: ?$ElementType<Scalars, 'String'>,
vatExemptionWithItd?: ?VatExemptionWithItd,
vatExemptionWithoutItd?: ?VatExemptionWithoutItd,
vatNumber?: ?$ElementType<Scalars, 'String'>,
vatPaymentFrequency?: ?PaymentFrequency,
|};
Expand Down Expand Up @@ -4763,6 +4791,26 @@ export const VatCategoryCodeValues = Object.freeze({

export type VatCategoryCode = $Values<typeof VatCategoryCodeValues>;

export const VatExemptionWithItdValues = Object.freeze({
Section_4Nr_7: 'SECTION_4_NR_7'
});


export type VatExemptionWithItd = $Values<typeof VatExemptionWithItdValues>;

export const VatExemptionWithoutItdValues = Object.freeze({
Section_4Nr_8: 'SECTION_4_NR_8',
Section_4Nr_11: 'SECTION_4_NR_11',
Section_4Nr_14: 'SECTION_4_NR_14',
Section_4Nr_16: 'SECTION_4_NR_16',
Section_4Nr_20: 'SECTION_4_NR_20',
Section_4Nr_21: 'SECTION_4_NR_21',
Section_4Nr_22: 'SECTION_4_NR_22'
});


export type VatExemptionWithoutItd = $Values<typeof VatExemptionWithoutItdValues>;

export const VatRateValues = Object.freeze({
ReverseCharge: 'REVERSE_CHARGE',
Vat_0: 'VAT_0',
Expand Down
42 changes: 42 additions & 0 deletions lib/graphql/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1449,6 +1449,8 @@ export type Mutation = {
createDraftTransaction: CreateDraftTransactionResponse;
/** The logo a user can add to his invoice. The path to it is stored in invoiceSettings */
createInvoiceLogo: CreateInvoiceLogoResponse;
/** Create an OCR Asset and obtain an upload config */
createOCRAsset: CreateAssetResponse;
createQuestionnaireDocumentAsset: CreateAssetResponse;
createReview: CreateReviewResponse;
/** Create user's taxNumber */
Expand Down Expand Up @@ -1500,6 +1502,8 @@ export type Mutation = {
duplicateInvoice: InvoiceOutput;
/** Exit business asset */
exitBusinessAsset: MutationResult;
/** Performs OCR on the asset and extracts data */
extractOCRData?: Maybe<OcrResult>;
/** Confirm and validate an Asset upload as completed */
finalizeAssetUpload: Asset;
finalizeTaxCase: TaxCase;
Expand Down Expand Up @@ -1788,6 +1792,7 @@ export type MutationCreateDatevExportArgs = {


export type MutationCreateDeviceBindingRequestArgs = {
deviceId?: InputMaybe<Scalars['String']>;
deviceName: Scalars['String'];
};

Expand All @@ -1802,6 +1807,12 @@ export type MutationCreateInvoiceLogoArgs = {
};


export type MutationCreateOcrAssetArgs = {
filetype: Scalars['String'];
name: Scalars['String'];
};


export type MutationCreateQuestionnaireDocumentAssetArgs = {
filetype: Scalars['String'];
name: Scalars['String'];
Expand Down Expand Up @@ -1966,6 +1977,11 @@ export type MutationExitBusinessAssetArgs = {
};


export type MutationExtractOcrDataArgs = {
assetId: Scalars['String'];
};


export type MutationFinalizeAssetUploadArgs = {
assetId: Scalars['ID'];
};
Expand Down Expand Up @@ -2565,6 +2581,14 @@ export enum NotificationType {
Transactions = 'TRANSACTIONS'
}

export type OcrResult = {
__typename?: 'OCRResult';
amount?: Maybe<Scalars['Int']>;
description?: Maybe<Scalars['String']>;
iban?: Maybe<Scalars['String']>;
name?: Maybe<Scalars['String']>;
};

export type Overdraft = {
__typename?: 'Overdraft';
id: Scalars['String'];
Expand Down Expand Up @@ -4419,6 +4443,8 @@ export type UserTaxDetails = {
/** @deprecated This field will be removed in an upcoming release. Do not rely on it for any new features */
taxPaymentFrequency?: Maybe<TaxPaymentFrequency>;
taxRate?: Maybe<Scalars['Int']>;
vatExemptionWithItd?: Maybe<VatExemptionWithItd>;
vatExemptionWithoutItd?: Maybe<VatExemptionWithoutItd>;
vatNumber?: Maybe<Scalars['String']>;
vatPaymentFrequency?: Maybe<PaymentFrequency>;
vatRate?: Maybe<UserVatRate>;
Expand All @@ -4434,6 +4460,8 @@ export type UserTaxDetailsInput = {
permanentExtensionStatus?: InputMaybe<PermanentExtensionStatus>;
personalTaxNumber?: InputMaybe<Scalars['String']>;
taxNumber?: InputMaybe<Scalars['String']>;
vatExemptionWithItd?: InputMaybe<VatExemptionWithItd>;
vatExemptionWithoutItd?: InputMaybe<VatExemptionWithoutItd>;
vatNumber?: InputMaybe<Scalars['String']>;
vatPaymentFrequency?: InputMaybe<PaymentFrequency>;
};
Expand Down Expand Up @@ -4540,6 +4568,20 @@ export enum VatCategoryCode {
ReverseChargeIt = 'REVERSE_CHARGE_IT'
}

export enum VatExemptionWithItd {
Section_4Nr_7 = 'SECTION_4_NR_7'
}

export enum VatExemptionWithoutItd {
Section_4Nr_8 = 'SECTION_4_NR_8',
Section_4Nr_11 = 'SECTION_4_NR_11',
Section_4Nr_14 = 'SECTION_4_NR_14',
Section_4Nr_16 = 'SECTION_4_NR_16',
Section_4Nr_20 = 'SECTION_4_NR_20',
Section_4Nr_21 = 'SECTION_4_NR_21',
Section_4Nr_22 = 'SECTION_4_NR_22'
}

export enum VatRate {
ReverseCharge = 'REVERSE_CHARGE',
Vat_0 = 'VAT_0',
Expand Down

0 comments on commit 853f853

Please sign in to comment.