// GetOrder retrieves an ACME Order from the database.
GetOrder retrieves an ACME Order from the database.
// GetOrder retrieves an ACME Order from the database .
func (db *DB) GetOrder(ctx context.Context, id string) (*acme.Order, error) {
	dbo, err := db.getDBOrder(ctx, id)
	if err != nil {
		return nil, err
	}
	o := &acme.Order{
		ID:               dbo.ID,
		AccountID:        dbo.AccountID,
		ProvisionerID:    dbo.ProvisionerID,
		CertificateID:    dbo.CertificateID,
		Status:           dbo.Status,
		ExpiresAt:        dbo.ExpiresAt,
		Identifiers:      dbo.Identifiers,
		NotBefore:        dbo.NotBefore,
		NotAfter:         dbo.NotAfter,
		AuthorizationIDs: dbo.AuthorizationIDs,
		Error:            dbo.Error,
	}
	return o, nil
}
func ( db * DB ) GetOrder ( ctx context . Context , id string ) ( * acme . Order , error ) { dbo , err := db . getDBOrder ( ctx , id ) if err != nil { return nil , err } o := & acme . Order { ID : dbo . ID , AccountID : dbo . AccountID , ProvisionerID : dbo . ProvisionerID , CertificateID : dbo . CertificateID , Status : dbo . Status , ExpiresAt : dbo . ExpiresAt , Identifiers : dbo . Identifiers , NotBefore : dbo . NotBefore , NotAfter : dbo . NotAfter , AuthorizationIDs : dbo . AuthorizationIDs , Error : dbo . Error , } return o , nil }
GetOrder retrieves an ACME Order from the database.
GetOrder retrieves an ACME Order from the database .