Sha256: e111e0af4d48c3807ea5ea0394fe304bcb8329040d0331ee2b116ddc3b360fac

Contents?: true

Size: 811 Bytes

Versions: 2

Compression:

Stored size: 811 Bytes

Contents

@namespace("Switchboard")

protocol ProviderOffer {
  import protocol "../compiled/package.avpr";

  /** The main class for this protocol */
  record ProviderOffer {
    /** The primary key */
    int id;
    int state_id;
    int lawyer_id;
    int provider_id;
    int offer_id;
    int consumer_fee_in_cents;
    boolean available;
    Package package;
  }

  record ProviderOfferFetchOption {
    /** Which page of records to fetch */
    int page = 1;

    /** How many records per page */
    int per_page = 10;

    int provider_id;
    int offer_id;
    int state_id;
    int specialty_id;
    boolean available;
  }

  /** Returns a list of ProviderOffers */
  array<ProviderOffer> index(ProviderOfferFetchOption options);

  /** Return a single ProviderOffer */
  array<ProviderOffer> show(int id);
}

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
switchboard-contract-1.9.5 contracts/3/source/provider_offer.avdl
switchboard-contract-1.9.5 contracts/mobile/source/provider_offer.avdl