-
Notifications
You must be signed in to change notification settings - Fork 1
/
payment-address.js
38 lines (33 loc) · 909 Bytes
/
payment-address.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { PolymerElement } from '@polymer/polymer/polymer-element.js';
const $_documentContainer = document.createElement('template');
$_documentContainer.innerHTML = `<dom-module id="payment-address">
<template>
<style>
:host {
display: none;
}
</style>
</template>
</dom-module>`;
document.head.appendChild($_documentContainer.content);
export const PaymentAddressElement = class extends PolymerElement {
static get is() {
return 'payment-address';
}
static get properties() {
return {
country: String,
addressLine: Array,
region: String,
city: String,
dependentLocality: String,
postalCode: String,
sortingCode: String,
languageCode: String,
organization: String,
recipient: String,
phone: String
};
}
};
window.customElements.define(PaymentAddressElement.is, PaymentAddressElement);