Last active
August 19, 2019 20:51
-
-
Save kristjank/b8b5ea37e638d19de81813161dbf3d52 to your computer and use it in GitHub Desktop.
builder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const businessRegistrationType: number = MarketplaceTransactionTypes.BusinessRegistration; | |
export class BusinessRegistrationBuilder extends Transactions.TransactionBuilder<BusinessRegistrationBuilder> { | |
constructor() { | |
super(); | |
this.data.asset = { businessRegistration: {} }; | |
} | |
public businessRegistrationAsset(businessAsset: IBusinessRegistrationAsset): BusinessRegistrationBuilder { | |
this.data.asset.businessRegistration = { | |
name: businessAsset.name, | |
website: businessAsset.website, | |
vat: businessAsset.vat, | |
organizationRepository: businessAsset.organizationRepository, | |
}; | |
return this; | |
} | |
public getStruct(): Interfaces.ITransactionData { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment