MCPcopy Create free account
hub / github.com/codecombat/codecombat / constructor

Method constructor

app/views/account/PaymentsView.js:30–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 }
29
30 constructor () {
31 super()
32 this.payments = new Payments()
33 let opts = null
34 if (me.isParentHome()) {
35 opts = { data: { includeAsPurchaser: true } }
36 }
37 this.supermodel.trackRequest(this.payments.fetchByRecipient(me.id, opts))
38 this.prepaids = new Prepaids()
39 this.supermodel.trackRequest(this.prepaids.fetchByCreator(me.id, { data: { allTypes: true } }))
40 this.paymentDescription = {}
41 }
42
43 getMeta () {
44 return { title: $.i18n.t('account.payments_title') }

Callers

nothing calls this directly

Calls 3

isParentHomeMethod · 0.80
fetchByRecipientMethod · 0.80
fetchByCreatorMethod · 0.80

Tested by

no test coverage detected