|
| 1 | +{ |
| 2 | + "name": "AccountDetails", |
| 3 | + "memberOf": "wix-email-marketing-v2", |
| 4 | + "mixes": [], |
| 5 | + "callbacks": [], |
| 6 | + "extra": {}, |
| 7 | + "clientId": "wix-email-marketing.v2-account_details", |
| 8 | + "docs": {}, |
| 9 | + "relatedGuides": [], |
| 10 | + "properties": [], |
| 11 | + "operations": [ |
| 12 | + { |
| 13 | + "name": "getAccountDetails", |
| 14 | + "params": [], |
| 15 | + "requiredFields": [], |
| 16 | + "ret": { |
| 17 | + "type": [ |
| 18 | + { |
| 19 | + "complexType": { |
| 20 | + "nativeType": "Promise", |
| 21 | + "typeParams": [ |
| 22 | + { |
| 23 | + "referenceType": "wix-email-marketing-v2.AccountDetails.GetAccountDetailsResponse" |
| 24 | + } |
| 25 | + ] |
| 26 | + } |
| 27 | + } |
| 28 | + ], |
| 29 | + "doc": null |
| 30 | + }, |
| 31 | + "docs": { |
| 32 | + "summary": "Retrieves email marketing account details.", |
| 33 | + "description": [ |
| 34 | + ">**Note:** This function is restricted and only runs if you elevate permissions using the [`wix-auth.elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function." |
| 35 | + ], |
| 36 | + "examples": [ |
| 37 | + { |
| 38 | + "title": "GetAccountDetails example", |
| 39 | + "body": [ |
| 40 | + "import { accountDetails } from 'wix-email-marketing.v2';", |
| 41 | + " ", |
| 42 | + " async function getAccountDetails() {", |
| 43 | + " try {", |
| 44 | + " const result = await accountDetails.getAccountDetails();", |
| 45 | + "", |
| 46 | + " return result;", |
| 47 | + " } catch (error) {", |
| 48 | + " console.error(error);", |
| 49 | + " // Handle the error", |
| 50 | + " }", |
| 51 | + " }", |
| 52 | + " " |
| 53 | + ] |
| 54 | + } |
| 55 | + ] |
| 56 | + }, |
| 57 | + "isVeloEvent": false, |
| 58 | + "customLabels": [ |
| 59 | + { |
| 60 | + "id": "maturity-beta" |
| 61 | + } |
| 62 | + ] |
| 63 | + } |
| 64 | + ], |
| 65 | + "messages": [ |
| 66 | + { |
| 67 | + "name": "AccountDetails", |
| 68 | + "members": [ |
| 69 | + { |
| 70 | + "name": "package", |
| 71 | + "optional": true, |
| 72 | + "type": [ |
| 73 | + { |
| 74 | + "referenceType": "wix-email-marketing-v2.AccountDetails.Package" |
| 75 | + } |
| 76 | + ], |
| 77 | + "doc": "Current premium package information." |
| 78 | + }, |
| 79 | + { |
| 80 | + "name": "quotaPeriod", |
| 81 | + "optional": true, |
| 82 | + "type": [ |
| 83 | + { |
| 84 | + "referenceType": "wix-email-marketing-v2.AccountDetails.QuotaPeriod" |
| 85 | + } |
| 86 | + ], |
| 87 | + "doc": "Quota period and usage." |
| 88 | + }, |
| 89 | + { |
| 90 | + "name": "status", |
| 91 | + "optional": true, |
| 92 | + "type": [ |
| 93 | + { |
| 94 | + "nativeType": "string" |
| 95 | + } |
| 96 | + ], |
| 97 | + "doc": "Account status. One of:\n+ `'ACTIVE'`\n+ `'WARNED'`\n+ `'SUSPENDED'`\n+ `'BANNED'`" |
| 98 | + } |
| 99 | + ], |
| 100 | + "docs": { |
| 101 | + "description": [ |
| 102 | + "An account can be active or in some state of suspension (warned/suspended/banned).\nIf a user is in a state of suspension they must visit their email marketing account in the Wix business manager and follow the instructions." |
| 103 | + ] |
| 104 | + } |
| 105 | + }, |
| 106 | + { |
| 107 | + "name": "GetAccountDetailsRequest", |
| 108 | + "members": [], |
| 109 | + "docs": { |
| 110 | + "description": [ |
| 111 | + "" |
| 112 | + ] |
| 113 | + } |
| 114 | + }, |
| 115 | + { |
| 116 | + "name": "GetAccountDetailsResponse", |
| 117 | + "members": [ |
| 118 | + { |
| 119 | + "name": "accountDetails", |
| 120 | + "optional": true, |
| 121 | + "type": [ |
| 122 | + { |
| 123 | + "referenceType": "wix-email-marketing-v2.AccountDetails.AccountDetails" |
| 124 | + } |
| 125 | + ], |
| 126 | + "doc": "Current account details." |
| 127 | + } |
| 128 | + ], |
| 129 | + "docs": { |
| 130 | + "description": [ |
| 131 | + "" |
| 132 | + ] |
| 133 | + } |
| 134 | + }, |
| 135 | + { |
| 136 | + "name": "Package", |
| 137 | + "members": [ |
| 138 | + { |
| 139 | + "name": "_id", |
| 140 | + "optional": true, |
| 141 | + "type": [ |
| 142 | + { |
| 143 | + "nativeType": "string" |
| 144 | + } |
| 145 | + ], |
| 146 | + "doc": "Package ID." |
| 147 | + }, |
| 148 | + { |
| 149 | + "name": "group", |
| 150 | + "optional": true, |
| 151 | + "type": [ |
| 152 | + { |
| 153 | + "nativeType": "string" |
| 154 | + } |
| 155 | + ], |
| 156 | + "doc": "Package group." |
| 157 | + }, |
| 158 | + { |
| 159 | + "name": "monthlyQuotaAllocation", |
| 160 | + "optional": true, |
| 161 | + "type": [ |
| 162 | + { |
| 163 | + "referenceType": "wix-email-marketing-v2.AccountDetails.Quota" |
| 164 | + } |
| 165 | + ], |
| 166 | + "doc": "Allocated quota per month." |
| 167 | + } |
| 168 | + ], |
| 169 | + "docs": { |
| 170 | + "description": [ |
| 171 | + "" |
| 172 | + ] |
| 173 | + } |
| 174 | + }, |
| 175 | + { |
| 176 | + "name": "Quota", |
| 177 | + "members": [ |
| 178 | + { |
| 179 | + "name": "campaigns", |
| 180 | + "optional": true, |
| 181 | + "type": [ |
| 182 | + { |
| 183 | + "nativeType": "number" |
| 184 | + } |
| 185 | + ], |
| 186 | + "doc": "Number of allocated marketing campaigns per month (-1 means unlimited)." |
| 187 | + }, |
| 188 | + { |
| 189 | + "name": "emails", |
| 190 | + "optional": true, |
| 191 | + "type": [ |
| 192 | + { |
| 193 | + "nativeType": "number" |
| 194 | + } |
| 195 | + ], |
| 196 | + "doc": "Number of allocated individual emails per month." |
| 197 | + } |
| 198 | + ], |
| 199 | + "docs": { |
| 200 | + "description": [ |
| 201 | + "" |
| 202 | + ] |
| 203 | + } |
| 204 | + }, |
| 205 | + { |
| 206 | + "name": "QuotaPeriod", |
| 207 | + "members": [ |
| 208 | + { |
| 209 | + "name": "dateFrom", |
| 210 | + "optional": true, |
| 211 | + "type": [ |
| 212 | + { |
| 213 | + "nativeType": "Date" |
| 214 | + } |
| 215 | + ], |
| 216 | + "doc": "Current quota period start date." |
| 217 | + }, |
| 218 | + { |
| 219 | + "name": "dateTo", |
| 220 | + "optional": true, |
| 221 | + "type": [ |
| 222 | + { |
| 223 | + "nativeType": "Date" |
| 224 | + } |
| 225 | + ], |
| 226 | + "doc": "Current quota period end date - after which quota will roll over." |
| 227 | + }, |
| 228 | + { |
| 229 | + "name": "quotaUsage", |
| 230 | + "optional": true, |
| 231 | + "type": [ |
| 232 | + { |
| 233 | + "referenceType": "wix-email-marketing-v2.AccountDetails.Quota" |
| 234 | + } |
| 235 | + ], |
| 236 | + "doc": "Information about allocated quota already used in this period." |
| 237 | + } |
| 238 | + ], |
| 239 | + "docs": { |
| 240 | + "description": [ |
| 241 | + "" |
| 242 | + ] |
| 243 | + } |
| 244 | + } |
| 245 | + ] |
| 246 | +} |
0 commit comments