Class: MOCO::OfferApproval
- Inherits:
-
BaseEntity
- Object
- BaseEntity
- MOCO::OfferApproval
- Defined in:
- lib/moco/entities/offer_approval.rb
Overview
Represents a MOCO offer customer approval (Kundenfreigabe) Allows customers to review and sign offers online
Read-only attributes:
id, approval_url, offer_document_url, active,
customer_full_name, customer_email, signature_url,
signed_at, created_at, updated_at
Activation workflow:
1. Activate approval to generate shareable URL
2. Share offer_document_url with customer
3. Customer reviews and signs
4. Check signed_at to verify approval
Example:
# Activate customer approval
approval = moco.post("offers/123/customer_approval/activate")
# Get approval status
approval = moco.get("offers/123/customer_approval")
# Deactivate (revoke access)
moco.put("offers/123/customer_approval/deactivate")
Note:
Check signed_at to determine if the customer has signed.
Returns 404 if not yet activated.
Instance Attribute Summary
Attributes inherited from BaseEntity
Instance Method Summary collapse
-
#offer ⇒ Object
Associations.
- #to_s ⇒ Object
Methods inherited from BaseEntity
#==, #association, #destroy, #eql?, #has_many, #hash, #id, #initialize, #inspect, #reload, #save, #to_h, #to_json, #update
Constructor Details
This class inherits a constructor from MOCO::BaseEntity
Instance Method Details
#offer ⇒ Object
Associations
34 35 36 |
# File 'lib/moco/entities/offer_approval.rb', line 34 def offer association(:offer) end |
#to_s ⇒ Object
38 39 40 |
# File 'lib/moco/entities/offer_approval.rb', line 38 def to_s "OfferApproval ##{id}" end |