Skip to content

Commit 46b9260

Browse files
committed
Resolves #458 - Add support for more resources
1 parent 923ace5 commit 46b9260

File tree

2 files changed

+58
-3
lines changed

2 files changed

+58
-3
lines changed

external/resources/yaml/resources.yaml

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ account-authentication-settings:
1818
auto_create_account_for_account_members:
1919
type: BOOL
2020
account_member_self_management:
21-
type: BOOL
21+
type: ENUM:disabled,update_only
2222
account-management-authentication-tokens:
2323
singular-name: "account-management-authentication-token"
2424
json-api-type: "account_management_authentication_token"
@@ -30,7 +30,7 @@ account-management-authentication-tokens:
3030
content-type: application/json
3131
attributes:
3232
authentication_mechanism:
33-
type: STRING
33+
type: ENUM:oidc,password,passwordless,self_signup
3434
oauth_authorization_code:
3535
type: STRING
3636
oauth_redirect_uri:
@@ -43,6 +43,12 @@ account-management-authentication-tokens:
4343
type: STRING
4444
password:
4545
type: STRING
46+
name:
47+
type: STRING
48+
autofill: FUNC:Name
49+
email:
50+
type: STRING
51+
autofill: FUNC:Email
4652
suppress-reset-warning: true
4753
account-members:
4854
singular-name: "account-member"
@@ -1575,6 +1581,9 @@ pcm-nodes:
15751581
get-entity:
15761582
docs: "https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/hierarchies/nodes/get-a-hierarchy-node.html"
15771583
url: "/pcm/hierarchies/{pcm_hierarchies}/nodes/{pcm_nodes}"
1584+
get-collection:
1585+
docs: "https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/hierarchies/nodes/get-a-hierarchy-node.html"
1586+
url: "/pcm/hierarchies/{pcm_hierarchies}/nodes"
15781587
update-entity:
15791588
docs: "https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/hierarchies/nodes/update-a-hierarchy-node.html"
15801589
url: "/pcm/hierarchies/{pcm_hierarchies}/nodes/{pcm_nodes}"
@@ -1777,8 +1786,10 @@ pcm-pricebooks:
17771786
attributes:
17781787
name:
17791788
type: STRING
1789+
autofill: FUNC:Company
17801790
description:
17811791
type: STRING
1792+
autofill: FUNC:Phrase
17821793
pcm-product-prices:
17831794
singular-name: "pcm-product-price"
17841795
json-api-type: "product-price"
@@ -1816,6 +1827,41 @@ pcm-product-prices:
18161827
type: INT
18171828
currencies.CAD.includes_tax:
18181829
type: BOOL
1830+
pcm-pricebook-modifiers:
1831+
singular-name: "pcm-pricebook-modifier"
1832+
json-api-format: "compliant"
1833+
json-api-type: "price-modifier"
1834+
docs: "https://elasticpath.dev/docs/pxm/pricebooks/pxm-pricebooks-modifiers/get-a-price-modifier"
1835+
get-collection:
1836+
docs: "https://elasticpath.dev/docs/pxm/pricebooks/pxm-pricebooks-modifiers/get-all-price-modifiers"
1837+
url: "/pcm/pricebooks/{pcm_pricebooks}/modifiers/"
1838+
get-entity:
1839+
docs: "https://elasticpath.dev/docs/pxm/pricebooks/pxm-pricebooks-modifiers/get-a-price-modifier"
1840+
url: "/pcm/pricebooks/{pcm_pricebooks}/modifiers/{pcm_pricebook_modifiers}"
1841+
create-entity:
1842+
docs: "https://elasticpath.dev/docs/pxm/pricebooks/pxm-pricebooks-modifiers/create-a-price-modifier"
1843+
url: "/pcm/pricebooks/{pcm_pricebooks}/modifiers"
1844+
update-entity:
1845+
docs: "https://elasticpath.dev/docs/pxm/pricebooks/pxm-pricebooks-modifiers/update-a-price-modifier"
1846+
url: "/pcm/pricebooks/{pcm_pricebooks}/modifiers/{pcm_pricebook_modifiers}"
1847+
delete-entity:
1848+
docs: "https://elasticpath.dev/docs/pxm/pricebooks/pxm-pricebooks-modifiers/delete-a-price-modifier"
1849+
url: "/pcm/pricebooks/{pcm_pricebooks}/modifiers/{pcm_pricebook_modifiers}"
1850+
attributes:
1851+
name:
1852+
type: STRING
1853+
autofill: FUNC:BuzzWord
1854+
modifier_type:
1855+
type: ENUM:price_increment,price_decrement,price_equals
1856+
autofill: VALUE:price_equals
1857+
currencies.USD.amount:
1858+
type: INT
1859+
currencies.USD.includes_tax:
1860+
type: BOOL
1861+
^currencies\.USD\.tiers\..+\.minimum_quantity$:
1862+
type: INT
1863+
^currencies\.USD\.tiers\..+\.amount$:
1864+
type: INT
18191865
pcm-variations:
18201866
singular-name: "pcm-variation"
18211867
json-api-type: "product-variation"

external/runbooks/account-management.epcc.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ actions:
1010
# Initialize alias for Authentication Realm
1111
- epcc get account-authentication-settings
1212
- epcc create password-profile related_authentication_realm_for_account_authentication_settings_last_read=entity name "Username and Password Authentication"
13+
enable-self-signup-and-management:
14+
description:
15+
short: "Enable password authentication"
16+
commands:
17+
# Initialize alias for Authentication Realm
18+
- epcc get account-authentication-settings
19+
- |
20+
epcc create password-profile related_authentication_realm_for_account_authentication_settings_last_read=entity name "Username and Password Authentication"
21+
epcc update account-authentication-setting enable_self_signup true auto_create_account_for_account_members true account_member_self_management "update_only"
1322
create-deep-hierarchy:
1423
description:
1524
short: "Create a hierarchy"
@@ -25,7 +34,7 @@ actions:
2534
description:
2635
short: "Width of the hierarchy"
2736
commands:
28-
# language=YAML
37+
# language=Yaml
2938
- |2
3039
{{- range untilStep 0 $.depth 1 -}}
3140
{{- $d := . -}}

0 commit comments

Comments
 (0)