<?php

namespace ChargeBee\ChargeBee\Models;

use ChargeBee\ChargeBee\Model;
use ChargeBee\ChargeBee\Request;
use ChargeBee\ChargeBee\Util;

class Address extends Model
{

  protected $allowed = [
    'label',
    'firstName',
    'lastName',
    'email',
    'company',
    'phone',
    'addr',
    'extendedAddr',
    'extendedAddr2',
    'city',
    'stateCode',
    'state',
    'country',
    'zip',
    'validationStatus',
    'subscriptionId',
  ];



  # OPERATIONS
  #-----------

  public static function retrieve($params, $env = null, $headers = array())
  {
    $jsonKeys = array(
    );
    return Request::send(Request::GET, Util::encodeURIPath("addresses"), $params, $env, $headers, null, false, $jsonKeys);
  }

  public static function update($params, $env = null, $headers = array())
  {
    $jsonKeys = array(
    );
    return Request::send(Request::POST, Util::encodeURIPath("addresses"), $params, $env, $headers, null, false, $jsonKeys);
  }

 }

?>