Skip to content

Commit 2836b4d

Browse files
committed
add form_fields to Customer
Form fields exist on Customer but are missing from the customer resource object. Schema definition: $ curl https://developer.bigcommerce.com/api-reference/store-management/customers-v2/BigCommerce_Customers_API.oas2.json | jq '.definitions.Customer.properties.form_fields' { "description": "Array of custom fields. This is a READ-ONLY field; do not set or modify its value in a POST or PUT request.", "type": "array", "items": { "title": "Form Fields", "type": "object", "properties": { "name": { "description": "Name of the form field", "type": "string", "example": "License Id" }, "value": { "description": "Value of the form field", "type": "string", "example": "123BAF" } } } }
1 parent 0aa8f0f commit 2836b4d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/bigcommerce/resources/customers/customer.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class Customer < Resource
2626
property :addresses
2727
property :tax_exempt_category
2828
property :accepts_marketing
29+
property :form_fields
2930

3031
def self.count(params = {})
3132
get 'customers/count', params

0 commit comments

Comments
 (0)