Options
All
  • Public
  • Public/Protected
  • All
Menu

This class represents the entity "A_CN_TaxInputInvoice" of service "API_CN_VAT_INVOICE_SRV". This service is part of the following communication scenarios: Incoming China VAT Invoice Integration (SAP_COM_0546). See https://api.sap.com/api/API_CN_VAT_INVOICE_SRV for more information.

Hierarchy

  • Entity
    • Cn_TaxInputInvoice

Implements

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • Returns Cn_TaxInputInvoice

Properties

Protected _customFields

_customFields: MapType<any>

A mapper representing custom fields in an entity. Custom fields are represented by their field names and the corresponding values. A custom field can be added or updated using setCustomField method.

Protected _versionIdentifier

_versionIdentifier: string

The current ETag version of the entity in the remote system. The ETag identified the version of the in the remote system. It will be automatically set in the "if-match" header of update requests and can be set as a custom header for delete requests. When no ETag is provided by the remote system the value of this variable defaults to "*".

Optional businessPlace

businessPlace: undefined | string

China Tax Invoice Tax Entity ID. Indicates a unique ID of 15 characters to identify the tax entity, which is an organizational unit to issue or receive the VAT invoices. Maximum length: 6.

nullable

Optional cnTaxBuyerRegnNmbr

cnTaxBuyerRegnNmbr: undefined | string

China Buyer Unified Social Credit Code. Maximum length: 20.

nullable

Optional cnTaxDeclnMonth

cnTaxDeclnMonth: undefined | string

China Tax Declaration Month. Maximum length: 2.

nullable

Optional cnTaxDeclnTime

cnTaxDeclnTime: Moment

China Tax Declaration Time.

nullable

Optional cnTaxDeclnYear

cnTaxDeclnYear: undefined | string

China Tax Declaration Year. Maximum length: 4.

nullable

Optional cnTaxInvcCode

cnTaxInvcCode: undefined | string

China Tax Invoice Code. Maximum length: 20.

nullable

Optional cnTaxInvcComment

cnTaxInvcComment: undefined | string

China Tax Invoice Comment. Maximum length: 255.

nullable

Optional cnTaxInvcCrcy

cnTaxInvcCrcy: undefined | string

Currency Key. Currency key for amounts in the system. Maximum length: 5.

nullable

Optional cnTaxInvcDate

cnTaxInvcDate: Moment

China Tax Invoice Date.

nullable

Optional cnTaxInvcDeductionType

cnTaxInvcDeductionType: undefined | string

China Tax Invoice Deduction Type. Maximum length: 1.

nullable

Optional cnTaxInvcDiscNetAmtInInvcCrcy

cnTaxInvcDiscNetAmtInInvcCrcy: BigNumber

China Tax Invoice Net Amount in Invoice Currency.

nullable

Optional cnTaxInvcDiscTaxAmtInInvcCrcy

cnTaxInvcDiscTaxAmtInInvcCrcy: BigNumber

China Tax Invoice Tax Amount in Invoice Currency.

nullable

Optional cnTaxInvcGldnTxSystSts

cnTaxInvcGldnTxSystSts: undefined | string

China Tax Invoice Status in Golden Tax System. Indicates the status of a VAT invoice in the Golden Tax System. Note that the customer namespace is Y-Z. Maximum length: 2.

nullable

Optional cnTaxInvcGldnTxSystStsSyncTme

cnTaxInvcGldnTxSystStsSyncTme: Moment

China Tax Invoice Last Synchronization Time with GT.

nullable

Optional cnTaxInvcInptProcgSts

cnTaxInvcInptProcgSts: undefined | string

China Tax Invoice Incoming Invoice Processing Status. Maximum length: 1.

nullable

Optional cnTaxInvcNetAmtInInvcCrcy

cnTaxInvcNetAmtInInvcCrcy: BigNumber

China Tax Invoice Net Amount in Invoice Currency.

nullable

Optional cnTaxInvcNmbr

cnTaxInvcNmbr: undefined | string

China Tax Invoice Number. Maximum length: 30.

nullable

Optional cnTaxInvcTaxAmtInInvcCrcy

cnTaxInvcTaxAmtInInvcCrcy: BigNumber

China Tax Invoice Tax Amount in Invoice Currency.

nullable

Optional cnTaxInvcType

cnTaxInvcType: undefined | string

China Tax Invoice Type. Specifies the following invoice types preconfigured: Normal VAT InvoiceSpecial VAT InvoiceUniform Invoice for Tax Controlled Motor Vehicle SalesSpecial Bill of Payment of Import VATInvoice for Agricultural Products PurchaseInvoice for Agricultural Products SalesExport InvoiceYou can add new invoice types.Note that the SAP namespace is A-Z and the customer namespace is 0-9. Maximum length: 1.

nullable

cnTaxInvcUuid

cnTaxInvcUuid: string

China Tax Invoice UUID.

Optional cnTaxInvcVehTotAmtInInvcCrcy

cnTaxInvcVehTotAmtInInvcCrcy: BigNumber

China Tax Invoice Vehicle Total Amount.

nullable

Optional cnTaxInvoiceVehFactoryModel

cnTaxInvoiceVehFactoryModel: undefined | string

China Tax Invoice Vehicle Factory Model. Maximum length: 100.

nullable

Optional cnTaxInvoiceVehImportCertNmbr

cnTaxInvoiceVehImportCertNmbr: undefined | string

China Tax Invoice Vehicle Import Certification Number. Maximum length: 80.

nullable

Optional cnTaxInvoiceVehPassengerLimit

cnTaxInvoiceVehPassengerLimit: undefined | string

China Tax Invoice Vehicle Limitation on Passengers. Maximum length: 40.

nullable

Optional cnTaxInvoiceVehTxnRecordNmbr

cnTaxInvoiceVehTxnRecordNmbr: undefined | string

China Tax Invoice Vehicle Taxation Record Number. Maximum length: 100.

nullable

Optional cnTaxInvoiceVehicleCertNumber

cnTaxInvoiceVehicleCertNumber: undefined | string

China Tax Invoice Vehicle Certification Number. Maximum length: 100.

nullable

Optional cnTaxInvoiceVehicleEngineNmbr

cnTaxInvoiceVehicleEngineNmbr: undefined | string

China Tax Invoice Vehicle Engine Number. Maximum length: 120.

nullable

Optional cnTaxInvoiceVehicleInspNumber

cnTaxInvoiceVehicleInspNumber: undefined | string

China Tax Invoice Vehicle Inspection Number. Maximum length: 80.

nullable

Optional cnTaxInvoiceVehicleNumber

cnTaxInvoiceVehicleNumber: undefined | string

China Tax Invoice Vehicle Number. Maximum length: 40.

nullable

Optional cnTaxInvoiceVehicleProdnPlace

cnTaxInvoiceVehicleProdnPlace: undefined | string

China Tax Invoice Vehicle Place of Production. Maximum length: 80.

nullable

Optional cnTaxInvoiceVehicleTonnage

cnTaxInvoiceVehicleTonnage: undefined | string

China Tax Invoice Vehicle Tonnage. Maximum length: 40.

nullable

Optional cnTaxInvoiceVehicleType

cnTaxInvoiceVehicleType: undefined | string

China Tax Invoice Vehicle Type. Maximum length: 80.

nullable

Optional cnTaxSellerName

cnTaxSellerName: undefined | string

China Tax Invoice Seller Name. Maximum length: 100.

nullable

Optional cnTaxSellerRegnNmbr

cnTaxSellerRegnNmbr: undefined | string

China Seller Unified Social Credit Code. Maximum length: 20.

nullable

Optional companyCode

companyCode: undefined | string

Company Code. Maximum length: 4.

nullable

Optional purchasingGroup

purchasingGroup: undefined | string

Purchasing Group. Key for a buyer or a group of buyers, who is/are responsible for certain purchasing activities. Internally, the purchasing group is responsible for the procurement of a material or a class of materials.Externally, it is the medium through which contacts with the vendor are maintained. Maximum length: 3.

nullable

Optional purchasingOrganization

purchasingOrganization: undefined | string

Purchasing Organization. Denotes the purchasing organization. Maximum length: 4.

nullable

Protected remoteState

remoteState: object

The remote state of the entity. Remote state refers to the last known state of the entity on the remote system from which it has been retrieved or to which it has been posted. It is stored as map, where the keys are stored in the format of VDM properties.

Type declaration

  • [keys: string]: any

Optional supplier

supplier: undefined | string

Supplier's Account Number. Alphanumeric key uniquely identifying the document. With the supplier number, information from the supplier master record (such as the supplier's address and bank details) is copied into a purchasing document (such as a request for quotation or a purchase order).You can use the supplier number to keep track of requests for quotation, purchase orders and outline agreements. Maximum length: 10.

nullable

Optional taxCategory

taxCategory: undefined | string

China Tax Input VAT Category. Specifies the category of the input VAT. You can define the input VAT categories that are either related or not related to the tax rate, such as input VAT for freight transport and associated services and input VAT for construction services. Maximum length: 2.

nullable

Optional taxInvoiceBuyerAddressPhone

taxInvoiceBuyerAddressPhone: undefined | string

China Tax Invoice Buyer Address, Phone. Maximum length: 100.

nullable

Optional taxInvoiceBuyerBankAccount

taxInvoiceBuyerBankAccount: undefined | string

China Tax Invoice Buyer Bank Account Info. Maximum length: 100.

nullable

Optional taxInvoiceSellerAddressPhone

taxInvoiceSellerAddressPhone: undefined | string

China Tax Invoice Seller Address, Phone. Maximum length: 100.

nullable

Optional taxInvoiceSellerBankAccount

taxInvoiceSellerBankAccount: undefined | string

China Tax Invoice Seller Bank Account Info. Maximum length: 100.

nullable

Optional taxRate

taxRate: BigNumber

VAT Tax Rate. Specifies the tax rate for the Golden Tax Interface in China.

nullable

toBinding

One-to-many navigation property to the Cn_TaxInvoiceBindingRecord entity.

toItem

One-to-many navigation property to the Cn_TaxInputInvoiceItem entity.

Static ALL_FIELDS

ALL_FIELDS: AllFields<Cn_TaxInputInvoice> = new AllFields('*', Cn_TaxInputInvoice)

All fields selector.

Static BUSINESS_PLACE

BUSINESS_PLACE: StringField<Cn_TaxInputInvoice> = new StringField('BusinessPlace', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the businessPlace property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_BUYER_REGN_NMBR

CN_TAX_BUYER_REGN_NMBR: StringField<Cn_TaxInputInvoice> = new StringField('CN_TaxBuyerRegnNmbr', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the cnTaxBuyerRegnNmbr property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_DECLN_MONTH

CN_TAX_DECLN_MONTH: StringField<Cn_TaxInputInvoice> = new StringField('CN_TaxDeclnMonth', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the cnTaxDeclnMonth property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_DECLN_TIME

CN_TAX_DECLN_TIME: DateField<Cn_TaxInputInvoice> = new DateField('CN_TaxDeclnTime', Cn_TaxInputInvoice, 'Edm.DateTimeOffset')

Static representation of the cnTaxDeclnTime property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_DECLN_YEAR

CN_TAX_DECLN_YEAR: StringField<Cn_TaxInputInvoice> = new StringField('CN_TaxDeclnYear', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the cnTaxDeclnYear property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_INVC_CODE

CN_TAX_INVC_CODE: StringField<Cn_TaxInputInvoice> = new StringField('CN_TaxInvcCode', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the cnTaxInvcCode property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_INVC_COMMENT

CN_TAX_INVC_COMMENT: StringField<Cn_TaxInputInvoice> = new StringField('CN_TaxInvcComment', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the cnTaxInvcComment property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_INVC_CRCY

CN_TAX_INVC_CRCY: StringField<Cn_TaxInputInvoice> = new StringField('CN_TaxInvcCrcy', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the cnTaxInvcCrcy property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_INVC_DATE

CN_TAX_INVC_DATE: DateField<Cn_TaxInputInvoice> = new DateField('CN_TaxInvcDate', Cn_TaxInputInvoice, 'Edm.DateTime')

Static representation of the cnTaxInvcDate property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_INVC_DEDUCTION_TYPE

CN_TAX_INVC_DEDUCTION_TYPE: StringField<Cn_TaxInputInvoice> = new StringField('CN_TaxInvcDeductionType', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the cnTaxInvcDeductionType property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_INVC_DISC_NET_AMT_IN_INVC_CRCY

CN_TAX_INVC_DISC_NET_AMT_IN_INVC_CRCY: BigNumberField<Cn_TaxInputInvoice> = new BigNumberField('CN_TaxInvcDiscNetAmtInInvcCrcy', Cn_TaxInputInvoice, 'Edm.Decimal')

Static representation of the cnTaxInvcDiscNetAmtInInvcCrcy property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_INVC_DISC_TAX_AMT_IN_INVC_CRCY

CN_TAX_INVC_DISC_TAX_AMT_IN_INVC_CRCY: BigNumberField<Cn_TaxInputInvoice> = new BigNumberField('CN_TaxInvcDiscTaxAmtInInvcCrcy', Cn_TaxInputInvoice, 'Edm.Decimal')

Static representation of the cnTaxInvcDiscTaxAmtInInvcCrcy property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_INVC_GLDN_TX_SYST_STS

CN_TAX_INVC_GLDN_TX_SYST_STS: StringField<Cn_TaxInputInvoice> = new StringField('CN_TaxInvcGldnTxSystSts', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the cnTaxInvcGldnTxSystSts property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_INVC_GLDN_TX_SYST_STS_SYNC_TME

CN_TAX_INVC_GLDN_TX_SYST_STS_SYNC_TME: DateField<Cn_TaxInputInvoice> = new DateField('CN_TaxInvcGldnTxSystStsSyncTme', Cn_TaxInputInvoice, 'Edm.DateTimeOffset')

Static representation of the cnTaxInvcGldnTxSystStsSyncTme property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_INVC_INPT_PROCG_STS

CN_TAX_INVC_INPT_PROCG_STS: StringField<Cn_TaxInputInvoice> = new StringField('CN_TaxInvcInptProcgSts', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the cnTaxInvcInptProcgSts property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_INVC_NET_AMT_IN_INVC_CRCY

CN_TAX_INVC_NET_AMT_IN_INVC_CRCY: BigNumberField<Cn_TaxInputInvoice> = new BigNumberField('CN_TaxInvcNetAmtInInvcCrcy', Cn_TaxInputInvoice, 'Edm.Decimal')

Static representation of the cnTaxInvcNetAmtInInvcCrcy property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_INVC_NMBR

CN_TAX_INVC_NMBR: StringField<Cn_TaxInputInvoice> = new StringField('CN_TaxInvcNmbr', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the cnTaxInvcNmbr property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_INVC_TAX_AMT_IN_INVC_CRCY

CN_TAX_INVC_TAX_AMT_IN_INVC_CRCY: BigNumberField<Cn_TaxInputInvoice> = new BigNumberField('CN_TaxInvcTaxAmtInInvcCrcy', Cn_TaxInputInvoice, 'Edm.Decimal')

Static representation of the cnTaxInvcTaxAmtInInvcCrcy property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_INVC_TYPE

CN_TAX_INVC_TYPE: StringField<Cn_TaxInputInvoice> = new StringField('CN_TaxInvcType', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the cnTaxInvcType property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_INVC_UUID

CN_TAX_INVC_UUID: StringField<Cn_TaxInputInvoice> = new StringField('CN_TaxInvcUUID', Cn_TaxInputInvoice, 'Edm.Guid')

Static representation of the cnTaxInvcUuid property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_INVC_VEH_TOT_AMT_IN_INVC_CRCY

CN_TAX_INVC_VEH_TOT_AMT_IN_INVC_CRCY: BigNumberField<Cn_TaxInputInvoice> = new BigNumberField('CN_TaxInvcVehTotAmtInInvcCrcy', Cn_TaxInputInvoice, 'Edm.Decimal')

Static representation of the cnTaxInvcVehTotAmtInInvcCrcy property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_INVOICE_VEHICLE_CERT_NUMBER

CN_TAX_INVOICE_VEHICLE_CERT_NUMBER: StringField<Cn_TaxInputInvoice> = new StringField('CN_TaxInvoiceVehicleCertNumber', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the cnTaxInvoiceVehicleCertNumber property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_INVOICE_VEHICLE_ENGINE_NMBR

CN_TAX_INVOICE_VEHICLE_ENGINE_NMBR: StringField<Cn_TaxInputInvoice> = new StringField('CN_TaxInvoiceVehicleEngineNmbr', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the cnTaxInvoiceVehicleEngineNmbr property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_INVOICE_VEHICLE_INSP_NUMBER

CN_TAX_INVOICE_VEHICLE_INSP_NUMBER: StringField<Cn_TaxInputInvoice> = new StringField('CN_TaxInvoiceVehicleInspNumber', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the cnTaxInvoiceVehicleInspNumber property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_INVOICE_VEHICLE_NUMBER

CN_TAX_INVOICE_VEHICLE_NUMBER: StringField<Cn_TaxInputInvoice> = new StringField('CN_TaxInvoiceVehicleNumber', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the cnTaxInvoiceVehicleNumber property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_INVOICE_VEHICLE_PRODN_PLACE

CN_TAX_INVOICE_VEHICLE_PRODN_PLACE: StringField<Cn_TaxInputInvoice> = new StringField('CN_TaxInvoiceVehicleProdnPlace', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the cnTaxInvoiceVehicleProdnPlace property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_INVOICE_VEHICLE_TONNAGE

CN_TAX_INVOICE_VEHICLE_TONNAGE: StringField<Cn_TaxInputInvoice> = new StringField('CN_TaxInvoiceVehicleTonnage', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the cnTaxInvoiceVehicleTonnage property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_INVOICE_VEHICLE_TYPE

CN_TAX_INVOICE_VEHICLE_TYPE: StringField<Cn_TaxInputInvoice> = new StringField('CN_TaxInvoiceVehicleType', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the cnTaxInvoiceVehicleType property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_INVOICE_VEH_FACTORY_MODEL

CN_TAX_INVOICE_VEH_FACTORY_MODEL: StringField<Cn_TaxInputInvoice> = new StringField('CN_TaxInvoiceVehFactoryModel', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the cnTaxInvoiceVehFactoryModel property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_INVOICE_VEH_IMPORT_CERT_NMBR

CN_TAX_INVOICE_VEH_IMPORT_CERT_NMBR: StringField<Cn_TaxInputInvoice> = new StringField('CN_TaxInvoiceVehImportCertNmbr', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the cnTaxInvoiceVehImportCertNmbr property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_INVOICE_VEH_PASSENGER_LIMIT

CN_TAX_INVOICE_VEH_PASSENGER_LIMIT: StringField<Cn_TaxInputInvoice> = new StringField('CN_TaxInvoiceVehPassengerLimit', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the cnTaxInvoiceVehPassengerLimit property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_INVOICE_VEH_TXN_RECORD_NMBR

CN_TAX_INVOICE_VEH_TXN_RECORD_NMBR: StringField<Cn_TaxInputInvoice> = new StringField('CN_TaxInvoiceVehTxnRecordNmbr', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the cnTaxInvoiceVehTxnRecordNmbr property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_SELLER_NAME

CN_TAX_SELLER_NAME: StringField<Cn_TaxInputInvoice> = new StringField('CN_TaxSellerName', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the cnTaxSellerName property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CN_TAX_SELLER_REGN_NMBR

CN_TAX_SELLER_REGN_NMBR: StringField<Cn_TaxInputInvoice> = new StringField('CN_TaxSellerRegnNmbr', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the cnTaxSellerRegnNmbr property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static COMPANY_CODE

COMPANY_CODE: StringField<Cn_TaxInputInvoice> = new StringField('CompanyCode', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the companyCode property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static PURCHASING_GROUP

PURCHASING_GROUP: StringField<Cn_TaxInputInvoice> = new StringField('PurchasingGroup', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the purchasingGroup property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static PURCHASING_ORGANIZATION

PURCHASING_ORGANIZATION: StringField<Cn_TaxInputInvoice> = new StringField('PurchasingOrganization', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the purchasingOrganization property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static SUPPLIER

SUPPLIER: StringField<Cn_TaxInputInvoice> = new StringField('Supplier', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the supplier property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static TAX_CATEGORY

TAX_CATEGORY: StringField<Cn_TaxInputInvoice> = new StringField('TaxCategory', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the taxCategory property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static TAX_INVOICE_BUYER_ADDRESS_PHONE

TAX_INVOICE_BUYER_ADDRESS_PHONE: StringField<Cn_TaxInputInvoice> = new StringField('TaxInvoiceBuyerAddressPhone', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the taxInvoiceBuyerAddressPhone property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static TAX_INVOICE_BUYER_BANK_ACCOUNT

TAX_INVOICE_BUYER_BANK_ACCOUNT: StringField<Cn_TaxInputInvoice> = new StringField('TaxInvoiceBuyerBankAccount', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the taxInvoiceBuyerBankAccount property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static TAX_INVOICE_SELLER_ADDRESS_PHONE

TAX_INVOICE_SELLER_ADDRESS_PHONE: StringField<Cn_TaxInputInvoice> = new StringField('TaxInvoiceSellerAddressPhone', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the taxInvoiceSellerAddressPhone property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static TAX_INVOICE_SELLER_BANK_ACCOUNT

TAX_INVOICE_SELLER_BANK_ACCOUNT: StringField<Cn_TaxInputInvoice> = new StringField('TaxInvoiceSellerBankAccount', Cn_TaxInputInvoice, 'Edm.String')

Static representation of the taxInvoiceSellerBankAccount property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static TAX_RATE

TAX_RATE: BigNumberField<Cn_TaxInputInvoice> = new BigNumberField('TaxRate', Cn_TaxInputInvoice, 'Edm.Decimal')

Static representation of the taxRate property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static TO_BINDING

TO_BINDING: Link<Cn_TaxInputInvoice, Cn_TaxInvoiceBindingRecord> = new Link('to_Binding', Cn_TaxInputInvoice, Cn_TaxInvoiceBindingRecord)

Static representation of the one-to-many navigation property toBinding for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static TO_ITEM

TO_ITEM: Link<Cn_TaxInputInvoice, Cn_TaxInputInvoiceItem> = new Link('to_Item', Cn_TaxInputInvoice, Cn_TaxInputInvoiceItem)

Static representation of the one-to-many navigation property toItem for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static _allFields

_allFields: Array<StringField<Cn_TaxInputInvoice> | DateField<Cn_TaxInputInvoice> | BigNumberField<Cn_TaxInputInvoice> | Link<Cn_TaxInputInvoice, Cn_TaxInvoiceBindingRecord> | Link<Cn_TaxInputInvoice, Cn_TaxInputInvoiceItem>> = [Cn_TaxInputInvoice.CN_TAX_INVC_UUID,Cn_TaxInputInvoice.CN_TAX_INVC_CODE,Cn_TaxInputInvoice.CN_TAX_INVC_NMBR,Cn_TaxInputInvoice.CN_TAX_SELLER_REGN_NMBR,Cn_TaxInputInvoice.CN_TAX_BUYER_REGN_NMBR,Cn_TaxInputInvoice.CN_TAX_INVC_TYPE,Cn_TaxInputInvoice.CN_TAX_INVC_DATE,Cn_TaxInputInvoice.CN_TAX_INVC_CRCY,Cn_TaxInputInvoice.CN_TAX_INVC_NET_AMT_IN_INVC_CRCY,Cn_TaxInputInvoice.CN_TAX_INVC_TAX_AMT_IN_INVC_CRCY,Cn_TaxInputInvoice.BUSINESS_PLACE,Cn_TaxInputInvoice.CN_TAX_INVC_DISC_NET_AMT_IN_INVC_CRCY,Cn_TaxInputInvoice.CN_TAX_INVC_DISC_TAX_AMT_IN_INVC_CRCY,Cn_TaxInputInvoice.TAX_RATE,Cn_TaxInputInvoice.COMPANY_CODE,Cn_TaxInputInvoice.CN_TAX_INVC_GLDN_TX_SYST_STS,Cn_TaxInputInvoice.CN_TAX_INVC_GLDN_TX_SYST_STS_SYNC_TME,Cn_TaxInputInvoice.CN_TAX_INVC_INPT_PROCG_STS,Cn_TaxInputInvoice.CN_TAX_INVC_DEDUCTION_TYPE,Cn_TaxInputInvoice.CN_TAX_SELLER_NAME,Cn_TaxInputInvoice.CN_TAX_INVC_COMMENT,Cn_TaxInputInvoice.TAX_CATEGORY,Cn_TaxInputInvoice.CN_TAX_DECLN_TIME,Cn_TaxInputInvoice.CN_TAX_DECLN_YEAR,Cn_TaxInputInvoice.CN_TAX_DECLN_MONTH,Cn_TaxInputInvoice.TAX_INVOICE_BUYER_ADDRESS_PHONE,Cn_TaxInputInvoice.TAX_INVOICE_BUYER_BANK_ACCOUNT,Cn_TaxInputInvoice.TAX_INVOICE_SELLER_ADDRESS_PHONE,Cn_TaxInputInvoice.TAX_INVOICE_SELLER_BANK_ACCOUNT,Cn_TaxInputInvoice.CN_TAX_INVOICE_VEHICLE_TYPE,Cn_TaxInputInvoice.CN_TAX_INVOICE_VEH_FACTORY_MODEL,Cn_TaxInputInvoice.CN_TAX_INVOICE_VEHICLE_PRODN_PLACE,Cn_TaxInputInvoice.CN_TAX_INVOICE_VEHICLE_CERT_NUMBER,Cn_TaxInputInvoice.CN_TAX_INVOICE_VEH_IMPORT_CERT_NMBR,Cn_TaxInputInvoice.CN_TAX_INVOICE_VEHICLE_INSP_NUMBER,Cn_TaxInputInvoice.CN_TAX_INVOICE_VEHICLE_ENGINE_NMBR,Cn_TaxInputInvoice.CN_TAX_INVOICE_VEHICLE_NUMBER,Cn_TaxInputInvoice.CN_TAX_INVC_VEH_TOT_AMT_IN_INVC_CRCY,Cn_TaxInputInvoice.CN_TAX_INVOICE_VEH_TXN_RECORD_NMBR,Cn_TaxInputInvoice.CN_TAX_INVOICE_VEHICLE_TONNAGE,Cn_TaxInputInvoice.CN_TAX_INVOICE_VEH_PASSENGER_LIMIT,Cn_TaxInputInvoice.PURCHASING_ORGANIZATION,Cn_TaxInputInvoice.PURCHASING_GROUP,Cn_TaxInputInvoice.SUPPLIER,Cn_TaxInputInvoice.TO_BINDING,Cn_TaxInputInvoice.TO_ITEM]

All fields of the Cn_TaxInputInvoice entity.

Static _defaultServicePath

_defaultServicePath: string = "/sap/opu/odata/sap/API_CN_VAT_INVOICE_SRV"

Default url path for the according service.

Static _entityName

_entityName: string = "A_CN_TaxInputInvoice"

Technical entity name for Cn_TaxInputInvoice.

Static _keyFields

_keyFields: Array<Selectable<Cn_TaxInputInvoice>> = [Cn_TaxInputInvoice.CN_TAX_INVC_UUID]

All key fields of the Cn_TaxInputInvoice entity.

Static _keys

_keys: object = Cn_TaxInputInvoice._keyFields.reduce((acc: { [keys: string]: Selectable<Cn_TaxInputInvoice> }, field: Selectable<Cn_TaxInputInvoice>) => {acc[field._fieldName] = field;return acc;}, {})

Mapping of all key field names to the respective static field property Cn_TaxInputInvoice.

Type declaration

Static _serviceName

_serviceName: string = "API_CN_VAT_INVOICE_SRV"
deprecated

Since v1.0.1 Use _defaultServicePath instead. Technical service name for Cn_TaxInputInvoice.

Accessors

versionIdentifier

  • get versionIdentifier(): string
  • ETag version identifier accessor.

    Returns string

    The ETag version identifier of the retrieved entity, returns undefined if not retrieved

Methods

Protected getCurrentMapKeys

  • getCurrentMapKeys(): Entity
  • Returns a map of all defined fields in entity to their current values.

    Returns Entity

    Entity with all defined entity fields

getCustomField

  • getCustomField(fieldName: string): any
  • Custom field value getter.

    Parameters

    • fieldName: string

      The name of the custom field

    Returns any

    The value of the corresponding custom field

getCustomFields

  • getCustomFields(): MapType<any>
  • Returns a map that contains all entity custom fields.

    Returns MapType<any>

    A map of all defined custom fields in the entity

getUpdatedCustomFields

  • getUpdatedCustomFields(): MapType<any>
  • Returns all updated custom field properties compared to the last known remote state.

    Returns MapType<any>

    A map containing all updated custom properties, with their new values

getUpdatedProperties

  • getUpdatedProperties(): Entity
  • Returns all changed properties compared to the last known remote state. The returned properties does not include custom fields. Use getUpdatedCustomFields, if updated custom fields are needed.

    Returns Entity

    Entity with all properties that changed

hasCustomField

  • hasCustomField(fieldName: string): boolean
  • Validates whether a custom field exists in the entity.

    Parameters

    • fieldName: string

      The name of the custom field to update

    Returns boolean

    A boolean value, that indicates whether a custom field is defined in entity

initializeCustomFields

  • initializeCustomFields(customFields: MapType<any>): this
  • Sets all retrieved custom fields in entity.

    Parameters

    • customFields: MapType<any>

      Extracted custom fields from a retrieved entity

    Returns this

    A boolean value, that indicates the existence of the field in entity

Protected isConflictingCustomField

  • isConflictingCustomField(customFieldName: string): boolean
  • Validates whether a field name does not conflict with an original field name and thus can be defined as custom fields.

    Parameters

    • customFieldName: string

      Field name to check

    Returns boolean

    Boolean value that describes whether a field name can be defined as custom field

setCustomField

  • setCustomField(fieldName: string, value: any): this
  • Sets a new custom field in the entity or updates it. Throws an error, if the provided custom field name is already defined by an original field in entity.

    Parameters

    • fieldName: string

      The name of the custom field to update

    • value: any

      The value of the field

    Returns this

    The entity itself, to facilitate method chaining

setOrInitializeRemoteState

  • setOrInitializeRemoteState(state?: MapType<any>): this
  • Initializes or sets the remoteState of the entity. This function is called on all read, create and update requests. This function should be called after initializeCustomFields, if custom fields are defined.

    deprecated

    Since 1.12.0. Will be removed in version 2.0.

    Parameters

    • Optional state: MapType<any>

      State to be set as remote state

    Returns this

    The entity itself, to facilitate method chaining

setVersionIdentifier

  • setVersionIdentifier(etag: string | undefined): this
  • Set the ETag version identifier of the retrieved entity.

    Parameters

    • etag: string | undefined

      The returned ETag version of the entity

    Returns this

    The entity itself, to facilitate method chaining

toJSON

  • toJSON(): object
  • Overwrites the default toJSON method so that all instance variables as well as all custom fields of the entity are returned.

    Returns object

    An object containing all instance variables + custom fields.

    • [key: string]: any

Static builder

Static customField

  • Returns a selectable object that allows the selection of custom field in a get request for the entity Cn_TaxInputInvoice.

    Parameters

    • fieldName: string

      Name of the custom field to select

    Returns CustomField<Cn_TaxInputInvoice>

    A builder that constructs instances of entity type Cn_TaxInputInvoice.

Static Protected customFieldSelector

  • customFieldSelector<EntityT>(fieldName: string, entityConstructor: Constructable<EntityT>): CustomField<EntityT>
  • Type parameters

    • EntityT: Entity

    Parameters

    • fieldName: string
    • entityConstructor: Constructable<EntityT>

    Returns CustomField<EntityT>

Static Protected entityBuilder

  • entityBuilder<EntityT, EntityTypeForceMandatoryT>(entityConstructor: Constructable<EntityT, EntityTypeForceMandatoryT>): EntityBuilderType<EntityT, EntityTypeForceMandatoryT>
  • Type parameters

    • EntityT: Entity

    • EntityTypeForceMandatoryT

    Parameters

    • entityConstructor: Constructable<EntityT, EntityTypeForceMandatoryT>

    Returns EntityBuilderType<EntityT, EntityTypeForceMandatoryT>

Static requestBuilder

  • Returns a request builder to construct requests for operations on the Cn_TaxInputInvoice entity type.

    Returns Cn_TaxInputInvoiceRequestBuilder

    A Cn_TaxInputInvoice request builder.