Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const data = {
- club: {
- address: {
- addressLine1: "Elly-Heuss-Knapp-Str. 13",
- addressLine2: null,
- city: "Betzdorf",
- country: "Deutschland",
- countryId: 2,
- zip: "57518"
- },
- bankConnections: [{
- bank: "",
- bic: "GENODE51WW1",
- holder: "Kath. Kirchengemeinde Betzd",
- iban: "DE52573918000045311902"
- }],
- categoryId: 13,
- // 1: Musik / Kunst / Kultur
- // 2: Sport / Fitness
- // 3: Freizeit / Jugend / Senioren
- // 4: Soziale Einrichtungen / Hilfswerk
- // 5: Rettungs- / Sanitätsdienste
- // 6: Beruf / Industrie / Gewerbe
- // 7: Religiöse Einrichtungen
- // 8: Garten / Natur / Landschaft
- // 9: Parteien / Politik
- // 10: Juristische Person des Öffentlichen Rechts
- // 11: Stiftung des öffentlichen Rechts
- // 12: Stiftung des privaten Rechts
- // 13: Körperschaft, Personenvereinigung, o.Ä.
- createdAt: Date,
- creator: {
- email: "markus@mkneuroth.de",
- firstName: "Markus",
- lastName: "Neuroth",
- userId: undefined
- },
- creatorAgreesToRepresentTheClub: true,
- creatorAgreesToRepresentTheClubAt: Date,
- creatorId: 150800,
- creditorId: "DE71ZZZ00000389698",
- email: null,
- fax: null,
- headOffice: "Betzdorf",
- id: 1765,
- isDemo: undefined,
- mobilePhone: null,
- name: "HASTE TÖNE",
- name2: "Gospel & Worship Chor",
- number: undefined, // string
- phone: "+49 175 5640424",
- phone2: null,
- registered: undefined, // e.V. (?)
- typeId: 17,
- // 1: Sportverein:
- // 2: Musikverein
- // 3: Gesellschaftsverein
- // 4: Sozial- und Rettungsverein
- // 5: Tier- und Naturschutzverein
- // 6: Medien- und Kulturverein
- // 7: Freizeitverein
- // 8: Medienverein
- // 9: Wirtschaftsverein
- // 10: Partei
- // 11: Unabhängige Wählervereinigung
- // 12: Heimatpflege / Brauchtum
- // 13: Wohlfahrt
- // 14: Entwicklungshilfe
- // 15: Interessenverband
- // 16: Bürgerinitiative
- // 17: Sonstiges,
- updatedAt: Date,
- website: "www.haste-toene.com"
- },
- departments: [{ // Organisationsebenen / Abteilungen. Hier geht es um die Bennenung (Neue App: Organisationsebene 1, alte App: Abteilung …)
- level: 1,
- name: 'Abteilung'
- }],
- formsOfAddress: [{ label: 'Familie' }], // Anreden, falls in neuer App nicht Vorhanden
- clubContributionRate: [
- {
- agedRates: [{
- amount: 30,
- endAge: 10,
- isNegative: false,
- isPercentageAmount: false,
- startAge: 0
- }],
- amount: 30,
- amountType: undefined, // 0: Fee, 1: Donation
- clubId: 1765,
- endAge: null,
- id: 7654,
- interval: 3, // 0: Monthly, 1: Quarterly, 2: HalfYearly, 3: Yearly
- invoiceText: undefined,
- isNegative: undefined,
- kind: 0, // 0: Regular, 1: DependsOnAge, 2: DependsOnMembershipDuration, 3: Additional, 4: Donation
- name: "Ermäßigt",
- rateChangeDate: undefined,
- startAge: null,
- unitType: undefined // 0: Percent, 1: Euro
- }
- ],
- clubMemberContributionRate: [
- {
- amount: undefined,
- clubContributionRateId: 7654,
- clubMemberId: 93431,
- itemCount: undefined
- }
- ],
- clubIndividualField: [{
- clubId: 1765,
- id: 1788,
- listId: undefined,
- name: "Mikrofonnummer",
- options: ['a', 'b'],
- type: 0 // 0 :Text, 1: Select, 2: Multiselect, 3: Date, 4: Number
- }],
- clubMemberIndividualField: [{
- clubIndividualFieldId: 1788,
- clubMemberId: 93551,
- values: ['a']
- }],
- clubLogo: undefined, // BytesArray
- clubMember: [
- {
- activeMembershipBeginAt: undefined,
- activeMembershipEndAt: undefined,
- address: {
- addressLine1: "",
- addressLine2: undefined,
- city: "",
- country: "Deutschland",
- countryId: 2,
- zip: null
- },
- anniversaryDateForSort: Date,
- bankConnections: [{
- holder: "",
- iban: "",
- bic: "",
- bank: ""
- }],
- birthday: Date,
- birthdayForSort: Date,
- birthdayMonth: undefined,
- clubId: 1765,
- email: "",
- facebook: null,
- fax: null,
- firstName: "Birgit",
- formOfAddressName: "Frau", // Frau / Herr / Madame / Monsieur / Mr. / Ms.
- gender: 1, // 0: Male, 1: Female, 2: NotSpecified
- id: 93512,
- invitationState: 4, // 0: Accepted, 1: Invited, 2: Requested, 3: Revoked, 4: NotInvited // should be 4…
- invitedAt: undefined,
- isHonoured: undefined,
- isPassive: true,
- isPerson: 1,
- lastName: "Moll",
- majorId: undefined, // keine Ahnung wozu das da ist.. clubMember.belongsTo(clubMember, { as: "major", foreignKey: "majorId", onDelete: "set null" });
- maritalStatus: undefined, // 0: LikeMarriage, 1: Partnership, 2: Divorced, 3: Separate, 4: Single, 5: Married, 6: Widowed
- memberId: 10200,
- membershipBeginAt: Date,
- membershipEndAt: Date,
- mobilePhone: "",
- mobilePhoneNotes: undefined,
- notes: undefined,
- notifications: {
- byEmail: false,
- byPhone: false,
- byPost: false,
- bySms: false,
- interval: 1, // 0: Instantly, 1: Each24Hours, 2: Each5Days
- intervalText: ""
- },
- originalClubMemberId: undefined,
- paymentType: {
- type: null, // 0: SepaDebit, 1: Invoice, 2: MemberOrContact
- sepaMandateReference: null, // set when type is 0
- payerMemberId: null, // set when type is 2
- seperateRatesInInvoice: null
- },
- phone: "",
- phone2: null,
- phone2Notes: undefined,
- phoneNotes: undefined,
- pictureExists: false,
- placeholderColor: "#AB47BC",
- profilePicture: undefined, // ByteArray
- rateBegin: undefined,
- rateEnd: undefined,
- state: 2, // 0: Active, 1: Former, 1: Passive
- staticClubIndividualFields: undefined,
- staticClubSubAreas: undefined,
- staticHistories: undefined,
- staticListId: undefined,
- titleId: undefined,
- type: 1, // 0: MemberAndContact, 1: Member, 2: Contact
- updatedAt: Date,
- userId: undefined,
- website: null
- }
- ],
- clubMemberHistory: [{
- clubMemberId: 93421,
- departmentName: undefined,
- isActive: undefined,
- isHonoured: undefined,
- membershipEnd: null,
- membershipStart: Date
- }],
- clubMemberSepaMandate: [
- {
- bankAccountHolder: "Julia Goßmann",
- bic: "WELADED1SIE",
- clubId: 1765,
- clubMemberId: 300676,
- createdAt: Date,
- createDate: Date,
- endDate: Date,
- iban: "DE84460500010042527366",
- kind: 1, // 0: oneTime, 1: untilCancel
- nextCharge: 2, // 0: first, 1: following, 2: last
- notifyCharge: false,
- reference: "12302",
- sepaMandateExisting: true, // if scanned document is in db
- state: 3, // 0: active, 1: expired, 2: revoked, 3: used
- type: 0, // 0: basis, 1: company
- updatedAt: Date
- }
- ],
- clubSubArea: [{
- areaId: undefined,
- clubId: 1765,
- id: 5687,
- level: 1, // 1: Abteilung, 2: Unterabteilung, 3: Funktion
- name: "HASTE TÖNE Chor",
- parentId: undefined
- }],
- clubMemberSubArea: [{
- clubMemberId: 93431,
- clubSubAreaId: 5687
- }],
- event: [{
- address: {
- addressLine1: "Plantagenweg",
- addressLine2: undefined,
- city: "Betzdorf",
- countryId: 2,
- zip: "57518"
- },
- applicationClosingDate: Date,
- categoryId: 3,
- clubId: 1765,
- description: "Gaststätte Bayer", // Achtung!!!! Ortsbezeichnung
- endDate: Date,
- eventLength: 0, // siehe events doku im confluence
- id: 574,
- isRecurringEvent: undefined,
- notes: "Die Betzdorfer Aktionsgemeinschaft und einige Wirte und Gastronomen der Region bieten ein buntes Konzertprogramm immer mittwochs in Betzdorf. Start ist am 16.Juli.",
- parentId: undefined, // siehe events doku im confluence
- recType: undefined, // siehe events doku im confluence
- siblingId: undefined, // siehe events doku im confluence
- startDate: Date,
- title: "Mittwochs Betzdorf Mittendrin bei Bayer",
- userId: 150800, // creator
- }],
- eventCategory: [{
- clubId: undefined,
- color: "#1b7af1",
- id: 1,
- name: "Mitgliederversammlung"
- }],
- eventParticipant: [{
- acceptedAt: Date, // undefined if not accepted
- clubId: undefined,
- clubMemberId: 93462,
- createdAt: Date,
- details: {
- email: "chris_schneider85@gmx.de",
- firstName: "Christoph",
- lastName: "Schneider",
- memberId: undefined,
- mobilePhone: "+49 160 99344189",
- phone: "+49 2743 3869",
- placeholderColor: null
- },
- eventId: 33504,
- id: 117756,
- invitedAt: Date,
- occurrenceDate: Date,
- parentId: undefined,
- rejectedAt: Date, // undefined if not rejected
- response: 2, // 0: None, 1: Accept, 2: Reject
- userId: undefined
- }]
- }
- const request = {
- data,
- importSource: 1,
- currentClubId: undefined // bei import in bestehenden web.meinverein.de Verein setzen
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement